]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/misc/teleport_dest.qc
Purge most cases of self from the client folder
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / misc / teleport_dest.qc
index 5a367308e4d0ebd0bd2c51b448b71b189a2e6db1..161e6796bd16a9b8ed0491c2859774ba3242f470 100644 (file)
@@ -61,15 +61,15 @@ spawnfunc(target_teleporter)
 
 #elif defined(CSQC)
 
-void teleport_dest_remove()
-{SELFPARAM();
+void teleport_dest_remove(entity this)
+{
        //if(self.classname)
                //strunzone(self.classname);
        //self.classname = string_null;
 
-       if(self.targetname)
-               strunzone(self.targetname);
-       self.targetname = string_null;
+       if(this.targetname)
+               strunzone(this.targetname);
+       this.targetname = string_null;
 }
 
 NET_HANDLE(ENT_CLIENT_TELEPORT_DEST, bool isnew)