r4072 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 9 09:02:16 EDT 2008


Author: div0
Date: 2008-08-09 09:02:15 -0400 (Sat, 09 Aug 2008)
New Revision: 4072

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
better race spawning


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2008-08-09 12:58:06 UTC (rev 4071)
+++ trunk/data/qcsrc/server/cl_client.qc	2008-08-09 13:02:15 UTC (rev 4072)
@@ -54,7 +54,8 @@
 				if(ent.health < 0 || ent.health >= ASSAULT_VALUE_INACTIVE)
 					return -1;
 			else if(ent.classname == "trigger_race_checkpoint")
-				if(self.race_checkpoint != -1 && self.race_checkpoint != ent.cnt)
+				if(max(0, self.race_checkpoint) != ent.cnt)
+				// checkpoint -1 players (freshly spawned) spawn close to finish!
 					return -1;
 			ent = find(ent, targetname, spot.target);
 		}




More information about the nexuiz-commits mailing list