]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use a more correct code for the arena part. Old one worked well but this should be...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 6 Oct 2012 14:48:55 +0000 (17:48 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 6 Oct 2012 14:48:55 +0000 (17:48 +0300)
qcsrc/server/cl_client.qc

index 22c2f0d5a1249af5919d108e8f055fb8937cc6dc..101e35cae2718d4702f43301b7061a4dbd138ae8 100644 (file)
@@ -2559,10 +2559,10 @@ void PlayerPreThink (void)
        self.stat_allow_oldnexbeam = autocvar_g_allow_oldnexbeam;
        self.stat_leadlimit = autocvar_leadlimit;
 
-       if(allowed_to_spawn)
-               self.stat_respawn_time = self.respawn_time;
-       else
+       if(g_arena || (g_ca && !allowed_to_spawn))
                self.stat_respawn_time = 0;
+       else
+               self.stat_respawn_time = self.respawn_time;
 
        if(frametime)
        {