]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/flipflop.qc
trigger_flipflop: minor cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / flipflop.qc
index af212ff5a42b7449bea067a2c755d4c86374782f..141f3ea9f19e513dcad6aeaa07e304efaec9dea8 100644 (file)
@@ -12,8 +12,10 @@ void flipflop_use(entity this, entity actor, entity trigger)
 
 spawnfunc(trigger_flipflop)
 {
-    if(this.spawnflags & 1)
-        this.state = 1;
+    if(this.spawnflags & START_ENABLED)
+    {
+        this.state = true;
+    }
     this.use = flipflop_use;
     this.reset = spawnfunc_trigger_flipflop; // perfect resetter
 }