X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fent_cs.qc;h=7b3af04bfd9aa9f988f72f7e9a53b28d4ad2a96c;hb=b38e2bae0a50554f26bf5af1fbd0e70b97cc0c71;hp=af9a73ecaed21e347608e137aa2ec52b6ccd5d81;hpb=fb61c977ddeed686ef587fd54e40f55a4bdc2322;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/ent_cs.qc b/qcsrc/server/ent_cs.qc index af9a73eca..7b3af04bf 100644 --- a/qcsrc/server/ent_cs.qc +++ b/qcsrc/server/ent_cs.qc @@ -26,13 +26,13 @@ float entcs_customize() o = self.owner; if(o.deadflag != DEAD_NO) return FALSE; - if(o.classname != "player") + if (!IS_PLAYER(o)) return FALSE; if(other == o) return FALSE; - if((other.classname == "player") || other.caplayer) + if((IS_PLAYER(other)) || other.caplayer) if(!teamplay || o.team != other.team) - if not (radar_showennemies) + if (!radar_showennemies) return FALSE; return TRUE; }