]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix teamradio voices playing to everyone (they now also only play to the sender in...
authorMario <mario@smbclan.net>
Sat, 25 Jun 2016 00:46:49 +0000 (10:46 +1000)
committerMario <mario@smbclan.net>
Sat, 25 Jun 2016 00:46:49 +0000 (10:46 +1000)
qcsrc/common/effects/qc/globalsound.qc

index a2653238e7ebea30ad5a22f26203adf9156c66e1..b9069705e3b97657ab9163f5366067503b412c72 100644 (file)
                                        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();
                                                });