]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/func/door_secret.qc
Remove an obscure macro from trigger code that was hiding a simple targetname check
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / func / door_secret.qc
index c008e500dc1215a638c5c58215a4f1702890ec63..50593a4e2b071df0bbe2c6238157e59c3c6c8dde 100644 (file)
@@ -244,10 +244,7 @@ spawnfunc(func_door_secret)
        setblocked(this, secret_blocked);
        this.speed = 50;
        this.use = fd_secret_use;
-       IFTARGETED
-       {
-       }
-       else
+       if(!this.targetname || this.targetname == "")
                this.spawnflags |= DOOR_SECRET_YES_SHOOT;
 
        if (this.spawnflags & DOOR_SECRET_YES_SHOOT)