From: TimePath Date: Sun, 28 Aug 2016 09:03:21 +0000 (+1000) Subject: entcs: use SAME_TEAM X-Git-Tag: xonotic-v0.8.2~655 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b53724b891c36f47c81c549239d5b1fbd8bcbea0;p=xonotic%2Fxonotic-data.pk3dir.git entcs: use SAME_TEAM --- 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);