From 6ed2e0b406b6c0adbfbf87c3aabc58387ee0c29b Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Sun, 29 Oct 2017 01:12:34 +0200 Subject: [PATCH] one more manual fix --- qcsrc/server/mutators/mutator/gamemode_freezetag.qc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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; } -- 2.39.2