]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/misc/teleport_dest.qc
Remove an obscure macro from trigger code that was hiding a simple targetname check
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / misc / teleport_dest.qc
index e7eedd52c413474745eab4e7c142db34f14dba34..7402726d436a3dd8c06a8e4be045e32c853ab623 100644 (file)
@@ -39,10 +39,7 @@ spawnfunc(info_teleport_destination)
        //setorigin(this, this.origin + '0 0 27');      // To fix a mappers' habit as old as Quake
        setorigin(this, this.origin);
 
-       IFTARGETED
-       {
-       }
-       else
+       if(!this.targetname || this.targetname == "")
        {
                objerror (this, "^3Teleport destination without a targetname");
                return; // don't link it to CSQC in this case!