]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix frozen dodging to always work
authorMario <mario@smbclan.net>
Tue, 26 Jan 2016 05:33:54 +0000 (15:33 +1000)
committerMario <mario@smbclan.net>
Tue, 26 Jan 2016 05:33:54 +0000 (15:33 +1000)
qcsrc/common/mutators/mutator/dodging/dodging.qc

index 09f169eb3d91bf5daf570b27b8e7c5190e52f0d5..6d3662c7372ec28e694deab0239616a588ebe70f 100644 (file)
@@ -137,7 +137,7 @@ float PM_dodging_checkpressedkeys(entity this)
                /* is this a state change? */                                                                                                   \
                if(!(PHYS_DODGING_PRESSED_KEYS(this) & KEY_##BTN) || frozen_no_doubletap) {             \
                                tap_direction_##RESULT;                                                                                                 \
-                               if ((time - this.last_##BTN##_KEY_time) < PHYS_DODGING_TIMEOUT(this))   \
+                               if ((time - this.last_##BTN##_KEY_time) < PHYS_DODGING_TIMEOUT(this) || frozen_no_doubletap)    \
                                        dodge_detected = true;                                                                                                  \
                                this.last_##BTN##_KEY_time = time;                                                                              \
                }