From b53724b891c36f47c81c549239d5b1fbd8bcbea0 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 28 Aug 2016 19:03:21 +1000 Subject: [PATCH] entcs: use SAME_TEAM --- qcsrc/common/ent_cs.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index dc8a68e31..32c06d9ea 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -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); -- 2.39.2