]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check teams when player is a .caplayer -- A dead caplayer does not need to know enemy...
authorSamual <samual@xonotic.org>
Tue, 30 Aug 2011 06:47:21 +0000 (02:47 -0400)
committerSamual <samual@xonotic.org>
Tue, 30 Aug 2011 06:47:21 +0000 (02:47 -0400)
qcsrc/server/ent_cs.qc

index 9c4bf59758770d4fc6f90f6abcf3560a21e27081..f127fb26e83e7a4471b7f6dfe09faaacf648becd 100644 (file)
@@ -30,7 +30,7 @@ float entcs_customize()
                return FALSE;
        if(other == o)
                return FALSE;
-       if(other.classname == "player")
+       if((other.classname == "player") || other.caplayer)
                if(!teamplay || o.team != other.team)
                        if not (radar_showennemies)
                                return FALSE;