From: Rudolf Polzer Date: Sat, 27 Aug 2011 20:43:51 +0000 (+0200) Subject: fix use of "other" X-Git-Tag: xonotic-v0.5.0~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3269042062ea093b89a0dcf097dfc9eb88cfaba5;p=xonotic%2Fxonotic-data.pk3dir.git fix use of "other" --- diff --git a/qcsrc/server/waypointsprites.qc b/qcsrc/server/waypointsprites.qc index 4f94434e4..f78296a14 100644 --- a/qcsrc/server/waypointsprites.qc +++ b/qcsrc/server/waypointsprites.qc @@ -189,15 +189,15 @@ float WaypointSprite_visible_for_player(entity e) { // personal waypoints if(self.enemy) - if(self.enemy != other) + if(self.enemy != e) return FALSE; // team waypoints if(self.team && self.rule == SPRITERULE_DEFAULT) { - if(self.team != other.team) + if(self.team != e.team) return FALSE; - if(other.classname != "player") + if(e.classname != "player") return FALSE; }