]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/checkpoint.qc
Clean out self from most NET_HANDLEs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / checkpoint.qc
index 2b0bd6f6763b338b8a3144f960c54348e7310b29..669414c570a6215b0945ec4cf59003bf909b262f 100644 (file)
@@ -67,16 +67,16 @@ void turret_checkpoint_init()
     //tc_acum += 0.25;
 }
 
-void spawnfunc_turret_checkpoint()
-{SELFPARAM();
-    setorigin(self,self.origin);
-    self.think = turret_checkpoint_init;
-    self.nextthink = time + 0.2;
+spawnfunc(turret_checkpoint)
+{
+    setorigin(this,this.origin);
+    this.think = turret_checkpoint_init;
+    this.nextthink = time + 0.2;
 }
 
 // Compat.
-void spawnfunc_walker_checkpoint()
-{SELFPARAM();
-    self.classname = "turret_checkpoint";
-    spawnfunc_turret_checkpoint();
+spawnfunc(walker_checkpoint)
+{
+    this.classname = "turret_checkpoint";
+    spawnfunc_turret_checkpoint(this);
 }