From: Mario Date: Wed, 8 Jul 2020 03:07:36 +0000 (+1000) Subject: Don't play speaker sounds globally if they have the loop flag (possible fix for Q3... X-Git-Tag: xonotic-v0.8.5~857^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba1679d72b9a726f53c206467c665ed8b75c5426;p=xonotic%2Fxonotic-data.pk3dir.git Don't play speaker sounds globally if they have the loop flag (possible fix for Q3 maps with global ambient sounds) --- diff --git a/qcsrc/common/mapobjects/target/speaker.qc b/qcsrc/common/mapobjects/target/speaker.qc index 354f4ca6f..e67f4b34c 100644 --- a/qcsrc/common/mapobjects/target/speaker.qc +++ b/qcsrc/common/mapobjects/target/speaker.qc @@ -83,7 +83,7 @@ spawnfunc(target_speaker) if(this.noise) precache_sound (this.noise); - if(!this.atten && (this.spawnflags & SPEAKER_GLOBAL)) + if(!this.atten && (this.spawnflags & SPEAKER_GLOBAL) && !(this.spawnflags & 3)) // special check for quake 3: looped sounds are never global { LOG_WARN("target_speaker uses legacy spawnflag GLOBAL (BIT(2)), please set atten to -1 instead"); this.atten = -1;