]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix this Freezetag bug: If you try to revive a player after a round ends the "Revive...
authorterencehill <piuntn@gmail.com>
Tue, 11 Jun 2013 13:10:10 +0000 (15:10 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 11 Jun 2013 13:10:10 +0000 (15:10 +0200)
qcsrc/server/mutators/gamemode_freezetag.qc

index 66c1066b0f2b7be54fb04438f688db009600ec78..dbbebbb3b0c30fa13f0b7ffc18b8469d600a5490 100644 (file)
@@ -100,7 +100,10 @@ float freezetag_CheckWinner()
                Send_Notification(NOTIF_ALL, world, MSG_CENTER, CENTER_ROUND_OVER);
                Send_Notification(NOTIF_ALL, world, MSG_INFO, INFO_ROUND_OVER);
                FOR_EACH_PLAYER(e)
+               {
                        e.freezetag_frozen_timeout = 0;
+                       e.freezetag_revive_progress = 0;
+               }
                round_handler_Init(5, autocvar_g_freezetag_warmup, autocvar_g_freezetag_round_timelimit);
                return 1;
        }
@@ -123,7 +126,10 @@ float freezetag_CheckWinner()
        }
 
        FOR_EACH_PLAYER(e)
+       {
                e.freezetag_frozen_timeout = 0;
+               e.freezetag_revive_progress = 0;
+       }
        round_handler_Init(5, autocvar_g_freezetag_warmup, autocvar_g_freezetag_round_timelimit);
        return 1;
 }