]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Freezetag: fix wrong count of alive players when a frozen player becomes spectator...
authorterencehill <piuntn@gmail.com>
Fri, 21 Sep 2018 22:20:23 +0000 (00:20 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 21 Sep 2018 22:20:23 +0000 (00:20 +0200)
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc

index ce5eb3032bb21b5602e12b9518edc3896b9bcf27..4b9306f0cb3e83aec4574bd7acc8d4b1647007e3 100644 (file)
@@ -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();
 }