]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
trigger_flipflop: minor cleanup
authorFreddy <schro.sb@gmail.com>
Mon, 12 Mar 2018 13:33:28 +0000 (14:33 +0100)
committerFreddy <schro.sb@gmail.com>
Mon, 12 Mar 2018 13:33:28 +0000 (14:33 +0100)
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
 }