]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
The check e.classname == "player" is redundant within FOR_EACH_PLAYER(e)
authorterencehill <piuntn@gmail.com>
Tue, 6 Mar 2012 15:50:51 +0000 (16:50 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 6 Mar 2012 15:50:51 +0000 (16:50 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc

index fa5a365ba48316b07c96ed3cdfc6b53619b3a2bb..8ae9998cd82f45872579faca1ae1b0366de831da 100644 (file)
@@ -27,7 +27,7 @@ void freezetag_CheckWinner()
 
        FOR_EACH_PLAYER(e)
        {
-               if(e.freezetag_frozen == 0 && e.classname == "player" && e.health >= 1) // here's one player from the winning team... good
+               if(e.freezetag_frozen == 0 && e.health >= 1) // here's one player from the winning team... good
                {
                        winner = e;
                        break; // break, we found the winner