]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix "spectating a frozen player also darkens the spectator's name in scoreboard"
authorterencehill <piuntn@gmail.com>
Wed, 7 Jan 2015 13:50:37 +0000 (14:50 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 7 Jan 2015 13:50:37 +0000 (14:50 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc

index f5c76f16f93e6591b238c25ab5c4701324afd58d..5ab96277b9e4a286a04999ab8c0832fb09d0fdc2 100644 (file)
@@ -205,7 +205,7 @@ void freezetag_Unfreeze(entity attacker)
 
 float freezetag_isEliminated(entity e)
 {
-       if(e.frozen == 1 || e.deadflag != DEAD_NO)
+       if(IS_PLAYER(e) && (e.frozen == 1 || e.deadflag != DEAD_NO))
                return TRUE;
        return FALSE;
 }