]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/flipflop.qc
Merge branch 'master' into TimePath/stats
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / flipflop.qc
index b5a2eb8b292d2120abe5dfc798ebd0b81b567c04..d2549f6c506b228500974313e3f13f5bab397597 100644 (file)
@@ -9,11 +9,12 @@ void flipflop_use()
         SUB_UseTargets();
 }
 
-void spawnfunc_trigger_flipflop()
-{SELFPARAM();
-    if(self.spawnflags & 1)
-        self.state = 1;
-    self.use = flipflop_use;
-    self.reset = spawnfunc_trigger_flipflop; // perfect resetter
+spawnfunc(trigger_flipflop)
+{
+    if(this.spawnflags & 1)
+        this.state = 1;
+    this.use = flipflop_use;
+    this.reset = spawnfunc_trigger_flipflop; // perfect resetter
 }
+
 #endif