From: Martin Taibr Date: Sat, 28 Oct 2017 23:12:34 +0000 (+0200) Subject: one more manual fix X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6ed2e0b406b6c0adbfbf87c3aabc58387ee0c29b;p=xonotic%2Fxonotic-data.pk3dir.git one more manual fix --- diff --git a/qcsrc/server/mutators/mutator/gamemode_freezetag.qc b/qcsrc/server/mutators/mutator/gamemode_freezetag.qc index 88afaa755..1d344786f 100644 --- a/qcsrc/server/mutators/mutator/gamemode_freezetag.qc +++ b/qcsrc/server/mutators/mutator/gamemode_freezetag.qc @@ -137,14 +137,11 @@ float freezetag_CheckWinner() entity freezetag_LastPlayerForTeam(entity this) { entity last_pl = NULL; - FOREACH_CLIENT(IS_PLAYER(it) && it != this, { - if(it.health >= 1) - if(!STAT(FROZEN, it)) - if(SAME_TEAM(it, this)) - if(!last_pl) - last_pl = it; - else - return NULL; + FOREACH_CLIENT(IS_PLAYER(it) && it != this && it.health >= 1 && !STAT(FROZEN, it) && SAME_TEAM(it, this), + { + if (last_pl) { return NULL; } + + last_pl = it; }); return last_pl; }