From 7655acd8eb1c2ef8effddb74856b40f9b23a7c79 Mon Sep 17 00:00:00 2001 From: Freddy Date: Mon, 12 Mar 2018 14:33:28 +0100 Subject: [PATCH] trigger_flipflop: minor cleanup --- qcsrc/common/triggers/trigger/flipflop.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } -- 2.39.2