From 04048a3415c64cb6cb423df8b9a018cb969c2f45 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Sun, 13 Aug 2017 01:26:28 +0200 Subject: [PATCH] let's not pretend this code actuall does anything or that we can use the return value --- qcsrc/common/mutators/mutator/dodging/sv_dodging.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc index a6c42533c..d0516e6d1 100644 --- a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc @@ -283,9 +283,9 @@ void PM_dodging(entity this) } } +#ifdef CSQC void PM_dodging_GetPressedKeys(entity this) { -#ifdef CSQC PM_dodging_checkpressedkeys(this); int keys = this.pressedkeys; @@ -299,15 +299,16 @@ void PM_dodging_GetPressedKeys(entity this) keys = BITSET(keys, KEY_ATCK, PHYS_INPUT_BUTTON_ATCK(this)); keys = BITSET(keys, KEY_ATCK2, PHYS_INPUT_BUTTON_ATCK2(this)); this.pressedkeys = keys; -#endif } +#endif MUTATOR_HOOKFUNCTION(dodging, PlayerPhysics) { entity player = M_ARGV(0, entity); - // print("dodging_PlayerPhysics\n"); +#ifdef CSQC PM_dodging_GetPressedKeys(player); +#endif PM_dodging(player); } -- 2.39.2