From e86f85c998b1efbbacf77d700cce310c9510df47 Mon Sep 17 00:00:00 2001 From: Freddy Date: Tue, 13 Mar 2018 20:58:49 +0100 Subject: [PATCH] trigger_monoflop: replace magic number --- qcsrc/common/triggers/spawnflags.qh | 3 +++ qcsrc/common/triggers/trigger/monoflop.qc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/triggers/spawnflags.qh b/qcsrc/common/triggers/spawnflags.qh index 145ee0ad9..06040f035 100644 --- a/qcsrc/common/triggers/spawnflags.qh +++ b/qcsrc/common/triggers/spawnflags.qh @@ -126,6 +126,9 @@ const int MAGICEAR_NODECOLORIZE = BIT(7); const int MAGICEAR_TUBA = BIT(8); const int MAGICEAR_TUBA_EXACTPITCH = BIT(9); +// monoflop +const int MONOFLOP_FIXED = BIT(0); + //---------- // SENDFLAGS //---------- diff --git a/qcsrc/common/triggers/trigger/monoflop.qc b/qcsrc/common/triggers/trigger/monoflop.qc index a67baca16..0c960ba8a 100644 --- a/qcsrc/common/triggers/trigger/monoflop.qc +++ b/qcsrc/common/triggers/trigger/monoflop.qc @@ -38,7 +38,7 @@ spawnfunc(trigger_monoflop) { if(!this.wait) this.wait = 1; - if(this.spawnflags & 1) + if(this.spawnflags & MONOFLOP_FIXED) this.use = monoflop_fixed_use; else this.use = monoflop_use; -- 2.39.2