]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
target_speaker: silence legacy spawnflag warning on Q3 maps
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 21 Mar 2024 07:16:34 +0000 (17:16 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Wed, 17 Apr 2024 14:49:40 +0000 (00:49 +1000)
qcsrc/common/mapobjects/target/speaker.qc

index 6766139c5db5008758d1c203a52594dd599e7641..a059d7f9f12d38b7ea5c682d86da7b65d2742aa9 100644 (file)
@@ -85,7 +85,8 @@ spawnfunc(target_speaker)
 
        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");
+               if (!Q3COMPAT_COMMON)
+                       LOG_WARN("target_speaker uses legacy spawnflag GLOBAL (BIT(2)), please set atten to -1 instead");
                this.atten = -1;
        }