From: terencehill Date: Fri, 21 Sep 2018 22:20:23 +0000 (+0200) Subject: Freezetag: fix wrong count of alive players when a frozen player becomes spectator... X-Git-Tag: xonotic-v0.8.5~1827^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32cd0fb563383c11a9b79d91f08a56896aa34e1e;p=xonotic%2Fxonotic-data.pk3dir.git Freezetag: fix wrong count of alive players when a frozen player becomes spectator or disconnects; it fixes #2098 --- 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(); }