From: Freddy Date: Mon, 12 Mar 2018 13:33:28 +0000 (+0100) Subject: trigger_flipflop: minor cleanup X-Git-Tag: xonotic-v0.8.5~2176^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7655acd8eb1c2ef8effddb74856b40f9b23a7c79;p=xonotic%2Fxonotic-data.pk3dir.git trigger_flipflop: minor cleanup --- diff --git a/qcsrc/common/triggers/trigger/flipflop.qc b/qcsrc/common/triggers/trigger/flipflop.qc index af212ff5a..141f3ea9f 100644 --- a/qcsrc/common/triggers/trigger/flipflop.qc +++ b/qcsrc/common/triggers/trigger/flipflop.qc @@ -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 }