]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only show when the player is allowed to spawn, not during rounds in Arena or Clan...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 6 Oct 2012 11:48:37 +0000 (14:48 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 6 Oct 2012 11:48:37 +0000 (14:48 +0300)
qcsrc/server/cl_client.qc

index 69af148a47d9cc7324acc5d087cb527acc581b64..22c2f0d5a1249af5919d108e8f055fb8937cc6dc 100644 (file)
@@ -2558,7 +2558,11 @@ void PlayerPreThink (void)
        self.stat_game_starttime = game_starttime;
        self.stat_allow_oldnexbeam = autocvar_g_allow_oldnexbeam;
        self.stat_leadlimit = autocvar_leadlimit;
-       self.stat_respawn_time = self.respawn_time;
+
+       if(allowed_to_spawn)
+               self.stat_respawn_time = self.respawn_time;
+       else
+               self.stat_respawn_time = 0;
 
        if(frametime)
        {