From f2421381ee500c827138508f743445724faf097f Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 25 Jun 2016 10:46:49 +1000 Subject: [PATCH] Fix teamradio voices playing to everyone (they now also only play to the sender in non-teamplay modes) --- qcsrc/common/effects/qc/globalsound.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }); -- 2.39.2