]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
one more manual fix
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 28 Oct 2017 23:12:34 +0000 (01:12 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 28 Oct 2017 23:12:34 +0000 (01:12 +0200)
qcsrc/server/mutators/mutator/gamemode_freezetag.qc

index 88afaa755d7b9f995419411e912d431b7d4ec166..1d344786fb17999ba9db7894607361358e9e993e 100644 (file)
@@ -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;
 }