From: Martin Taibr Date: Sat, 12 Aug 2017 23:26:28 +0000 (+0200) Subject: let's not pretend this code actuall does anything or that we can use the return value X-Git-Tag: xonotic-v0.8.5~2430^2~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04048a3415c64cb6cb423df8b9a018cb969c2f45;p=xonotic%2Fxonotic-data.pk3dir.git let's not pretend this code actuall does anything or that we can use the return value --- 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); }