]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
trigger_monoflop: replace magic number
authorFreddy <schro.sb@gmail.com>
Tue, 13 Mar 2018 19:58:49 +0000 (20:58 +0100)
committerFreddy <schro.sb@gmail.com>
Tue, 13 Mar 2018 19:58:49 +0000 (20:58 +0100)
qcsrc/common/triggers/spawnflags.qh
qcsrc/common/triggers/trigger/monoflop.qc

index 145ee0ad9a4fa4f831a87ebf6f8d83bceb7a733c..06040f035f8ea205ce1b0cda3efdbdc9e68ba474 100644 (file)
@@ -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
 //----------
index a67baca16a2f152d69877823eee144bfd076724a..0c960ba8a16444dc1d3287692de0797846dcf26c 100644 (file)
@@ -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;