]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'Mario/speed_var' into 'master'
authorMario <mario.mario@y7mail.com>
Fri, 17 Jul 2020 19:10:07 +0000 (19:10 +0000)
committerMario <mario.mario@y7mail.com>
Fri, 17 Jul 2020 19:10:07 +0000 (19:10 +0000)
Merge branch Mario/speed_var (S merge request)

See merge request xonotic/xonotic-data.pk3dir!843

qcsrc/common/mapobjects/target/speaker.qc

index 354f4ca6f6f2adbb3f6613d5d091f990dfc50784..e67f4b34cdb412257d1c20054e5e4920d8829afe 100644 (file)
@@ -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;