]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/target/speaker.qc
Remove an obscure macro from trigger code that was hiding a simple targetname check
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / target / speaker.qc
index 11c9ad7baef1d7c682feae42db5fa9162325532a..354f4ca6f6f2adbb3f6613d5d091f990dfc50784 100644 (file)
@@ -91,7 +91,7 @@ spawnfunc(target_speaker)
 
        if(!this.atten)
        {
-               IFTARGETED
+               if(this.targetname && this.targetname != "")
                        this.atten = ATTEN_NORM;
                else
                        this.atten = ATTEN_STATIC;
@@ -102,7 +102,7 @@ spawnfunc(target_speaker)
        if(!this.volume)
                this.volume = 1;
 
-       IFTARGETED
+       if(this.targetname && this.targetname != "")
        {
                if(this.spawnflags & SPEAKER_ACTIVATOR)
                        this.use = target_speaker_use_activator;