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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Dec 18 17:21:26 EST 2009


Author: div0
Date: 2009-12-18 17:21:26 -0500 (Fri, 18 Dec 2009)
New Revision: 8414

Modified:
   trunk/data/qcsrc/server/race.qc
Log:
add explanation comment


Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc	2009-12-18 22:15:40 UTC (rev 8413)
+++ trunk/data/qcsrc/server/race.qc	2009-12-18 22:21:26 UTC (rev 8414)
@@ -801,6 +801,11 @@
 	}
 
 	if(spot.target != "" && self.race_checkpoint == -1 && self.race_started)
+	// if we have cleared the time, but were already in the race, set the
+	// current CP to 0, not -1, so when dying again we properly retract...
+	// however, note that race_laptime is still 0, so this won't count as
+	// completing another lap (as we already HAD seen that finish line before,
+	// or we wouldn't be at -1 and race_started)
 		self.race_checkpoint = 0;
 
 	self.race_place = 0;



More information about the nexuiz-commits mailing list