From e40aeb183d920e5f0b3fa8bff198334677bcd103 Mon Sep 17 00:00:00 2001 From: div0 Date: Sat, 19 Dec 2009 16:29:39 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8418 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/race.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/race.qc b/data/qcsrc/server/race.qc index 21e2cd8ea..68e03e446 100644 --- a/data/qcsrc/server/race.qc +++ b/data/qcsrc/server/race.qc @@ -436,8 +436,9 @@ void checkpoint_passed() 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); -- 2.39.2