From: Samual Date: Tue, 30 Aug 2011 06:47:21 +0000 (-0400) Subject: Check teams when player is a .caplayer -- A dead caplayer does not need to know enemy... X-Git-Tag: xonotic-v0.5.0~14^2^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca766bdfaee47fa5d4b43688960c47d0d4600492;p=xonotic%2Fxonotic-data.pk3dir.git Check teams when player is a .caplayer -- A dead caplayer does not need to know enemy information --- diff --git a/qcsrc/server/ent_cs.qc b/qcsrc/server/ent_cs.qc index 9c4bf5975..f127fb26e 100644 --- a/qcsrc/server/ent_cs.qc +++ b/qcsrc/server/ent_cs.qc @@ -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;