From: Mario Date: Tue, 26 Jan 2016 05:33:54 +0000 (+1000) Subject: Fix frozen dodging to always work X-Git-Tag: xonotic-v0.8.2~1217 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=664d85aae28823917c6194efa270d6fc5b4fc805;p=xonotic%2Fxonotic-data.pk3dir.git Fix frozen dodging to always work --- diff --git a/qcsrc/common/mutators/mutator/dodging/dodging.qc b/qcsrc/common/mutators/mutator/dodging/dodging.qc index 09f169eb3..6d3662c73 100644 --- a/qcsrc/common/mutators/mutator/dodging/dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/dodging.qc @@ -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; \ }