From 3269042062ea093b89a0dcf097dfc9eb88cfaba5 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 27 Aug 2011 22:43:51 +0200 Subject: [PATCH] fix use of "other" --- qcsrc/server/waypointsprites.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.2