]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix use of "other"
authorRudolf Polzer <divverent@xonotic.org>
Sat, 27 Aug 2011 20:43:51 +0000 (22:43 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 27 Aug 2011 20:43:51 +0000 (22:43 +0200)
qcsrc/server/waypointsprites.qc

index 4f94434e425354dffa9ec2178af13898c9c98e2b..f78296a143aec71dc7fe05003ec8524af3f8c3a7 100644 (file)
@@ -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;
        }