From 32cd0fb563383c11a9b79d91f08a56896aa34e1e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 22 Sep 2018 00:20:23 +0200 Subject: [PATCH] Freezetag: fix wrong count of alive players when a frozen player becomes spectator or disconnects; it fixes #2098 --- qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc index ce5eb3032..4b9306f0c 100644 --- a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc +++ b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc @@ -327,10 +327,11 @@ void havocbot_role_ft_freeing(entity this) void ft_RemovePlayer(entity this) { - SetResourceAmountExplicit(this, RESOURCE_HEALTH, 0); // neccessary to update correctly alive stats if(!STAT(FROZEN, this)) freezetag_LastPlayerForTeam_Notify(this); Unfreeze(this); + + SetResourceAmountExplicit(this, RESOURCE_HEALTH, 0); // neccessary to correctly count alive players freezetag_count_alive_players(); } -- 2.39.2