From: Freddy Date: Tue, 13 Mar 2018 19:58:49 +0000 (+0100) Subject: trigger_monoflop: replace magic number X-Git-Tag: xonotic-v0.8.5~2176^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e86f85c998b1efbbacf77d700cce310c9510df47;p=xonotic%2Fxonotic-data.pk3dir.git trigger_monoflop: replace magic number --- 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;