From: Mario Date: Sat, 25 Jun 2016 00:46:49 +0000 (+1000) Subject: Fix teamradio voices playing to everyone (they now also only play to the sender in... X-Git-Tag: xonotic-v0.8.2~700^2~124 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f2421381ee500c827138508f743445724faf097f;p=xonotic%2Fxonotic-data.pk3dir.git Fix teamradio voices playing to everyone (they now also only play to the sender in non-teamplay modes) --- diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index a2653238e..b9069705e 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -363,7 +363,7 @@ if (fake) { msg_entity = this; X(); } else { - FOREACH_CLIENT(IS_REAL_CLIENT(it) && (!teamplay || msg_entity.team == this.team), { + FOREACH_CLIENT(IS_REAL_CLIENT(it) && SAME_TEAM(it, this), { msg_entity = it; X(); });