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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Dec 19 11:29:39 EST 2009


Author: div0
Date: 2009-12-19 11:29:39 -0500 (Sat, 19 Dec 2009)
New Revision: 8418

Modified:
   trunk/data/qcsrc/server/race.qc
Log:
Only update spotref if we ACTUALLY advanced by a CP. So if you spawn at the finish line spawn, touch the finish, then die, you will ALSO start from the very same spawn again.


Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc	2009-12-19 16:27:51 UTC (rev 8417)
+++ trunk/data/qcsrc/server/race.qc	2009-12-19 16:29:39 UTC (rev 8418)
@@ -436,8 +436,9 @@
 			self.message = oldmsg;
 		}
 
+		if(other.race_respawn_checkpoint != self.race_checkpoint)
+			other.race_respawn_spotref = self; // this is not a spot but a CP, but spawnpoint selection will deal with that
 		other.race_respawn_checkpoint = self.race_checkpoint;
-		other.race_respawn_spotref = self; // this is not a spot but a CP, but spawnpoint selection will deal with that
 		other.race_checkpoint = race_NextCheckpoint(self.race_checkpoint);
 
 		race_SendTime(other, self.race_checkpoint, other.race_movetime, !!other.race_laptime);



More information about the nexuiz-commits mailing list