r2612 - trunk/data/qcsrc/server

savagex at icculus.org savagex at icculus.org
Sat May 19 14:03:01 EDT 2007


Author: savagex
Date: 2007-05-19 14:03:01 -0400 (Sat, 19 May 2007)
New Revision: 2612

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
spawnpoint filter for assault only kicks in for targets with classname 
== "target_objective". This should be safer as only target_objective is 
carrying the semantics the spawnpoint filter assumes.


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2007-05-19 17:57:28 UTC (rev 2611)
+++ trunk/data/qcsrc/server/cl_client.qc	2007-05-19 18:03:01 UTC (rev 2612)
@@ -33,8 +33,9 @@
 			local entity ent;
 			ent = find(world, targetname, spot.target);
 			while(ent) {
-				if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE)
-					spotactive = 0;
+				if(ent.classname == "target_objective")
+					if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE)
+						spotactive = 0;
 				ent = find(ent, targetname, spot.target);
 			}
 		}




More information about the nexuiz-commits mailing list