From: terencehill Date: Tue, 11 Jun 2013 13:10:10 +0000 (+0200) Subject: Fix this Freezetag bug: If you try to revive a player after a round ends the "Revive... X-Git-Tag: xonotic-v0.8.0~243^2~1^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ac26e18f9ef8b55367b17a5af573b210462e9d4b;p=xonotic%2Fxonotic-data.pk3dir.git Fix this Freezetag bug: If you try to revive a player after a round ends the "Revive progress" centerprint will be stuck until a new one appears --- diff --git a/qcsrc/server/mutators/gamemode_freezetag.qc b/qcsrc/server/mutators/gamemode_freezetag.qc index 66c1066b0..dbbebbb3b 100644 --- a/qcsrc/server/mutators/gamemode_freezetag.qc +++ b/qcsrc/server/mutators/gamemode_freezetag.qc @@ -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; }