From: bones_was_here Date: Thu, 21 Mar 2024 07:16:34 +0000 (+1000) Subject: target_speaker: silence legacy spawnflag warning on Q3 maps X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=56fc7917265d3b68fd901b4e90329e66615df3fa;p=xonotic%2Fxonotic-data.pk3dir.git target_speaker: silence legacy spawnflag warning on Q3 maps --- diff --git a/qcsrc/common/mapobjects/target/speaker.qc b/qcsrc/common/mapobjects/target/speaker.qc index 6766139c5..a059d7f9f 100644 --- a/qcsrc/common/mapobjects/target/speaker.qc +++ b/qcsrc/common/mapobjects/target/speaker.qc @@ -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; }