]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/misc/laser.qc
Remove an obscure macro from trigger code that was hiding a simple targetname check
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / misc / laser.qc
index df88b750f245dbc7000deccd0a6785bf5ae1a300..403a4681328e7e92de5b13f110d94fce6aff06e4 100644 (file)
@@ -280,7 +280,7 @@ spawnfunc(misc_laser)
 
        this.setactive = laser_setactive;
 
-       IFTARGETED
+       if(this.targetname && this.targetname != "")
        {
                // backwards compatibility
                this.use = laser_use;