[nexuiz-commits] r6506 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Apr 16 07:39:41 EDT 2009


Author: div0
Date: 2009-04-16 07:39:40 -0400 (Thu, 16 Apr 2009)
New Revision: 6506

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
compat fix for ame7q3tny1


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-04-16 11:07:51 UTC (rev 6505)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-04-16 11:39:40 UTC (rev 6506)
@@ -125,15 +125,16 @@
 		float good, found;
 		ent = find(world, targetname, spot.target);
 		while(ent) {
-			found = 1;
 			if(ent.classname == "target_objective")
 			{
+				found = 1;
 				if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE)
 					return -1;
 				good = 1;
 			}
 			else if(ent.classname == "trigger_race_checkpoint")
 			{
+				found = 1;
 				if(self.classname == "player") // spectators may spawn everywhere
 				{
 					if(g_race_qualifying)
@@ -158,9 +159,6 @@
 				}
 				good = 1;
 			}
-			else
-			{
-			}
 			ent = find(ent, targetname, spot.target);
 		}
 



More information about the nexuiz-commits mailing list