]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
entcs: use SAME_TEAM
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 28 Aug 2016 09:03:21 +0000 (19:03 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 28 Aug 2016 09:03:21 +0000 (19:03 +1000)
qcsrc/common/ent_cs.qc

index dc8a68e31cc97e9c4307cf12919d8e8c1fe1a514..32c06d9eafc372c1b91f53f439ddd21432c47dab 100644 (file)
@@ -64,7 +64,7 @@
                sf |= BIT(0); // assume private
                do {
                        if (radar_showennemies) break;
-                       if ((to == player) || (teamplay && player.team == to.team)) break;
+                       if (SAME_TEAM(to, player)) break;
                        if (!(IS_PLAYER(to) || to.caplayer) && time > game_starttime) break;
                        sf &= ENTCS_PUBLICMASK; // no private updates
                } while (0);