From: Mario Date: Thu, 6 Sep 2018 16:42:39 +0000 (+1000) Subject: Use crouch status instead of crouch key to indicate when player is crouching in press... X-Git-Tag: xonotic-v0.8.5~1902 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=337eb6343dadd66e82d658be2d345fa992d77c35;p=xonotic%2Fxonotic-data.pk3dir.git Use crouch status instead of crouch key to indicate when player is crouching in pressed keys code --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 85514bdf9..262d1d1a7 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1647,7 +1647,7 @@ void GetPressedKeys(entity this) keys = BITSET(keys, KEY_LEFT, CS(this).movement.y < 0); keys = BITSET(keys, KEY_JUMP, PHYS_INPUT_BUTTON_JUMP(this)); - keys = BITSET(keys, KEY_CROUCH, PHYS_INPUT_BUTTON_CROUCH(this)); + keys = BITSET(keys, KEY_CROUCH, IS_DUCKED(this)); // workaround: player can't un-crouch until their path is clear, so we keep the button held here keys = BITSET(keys, KEY_ATCK, PHYS_INPUT_BUTTON_ATCK(this)); keys = BITSET(keys, KEY_ATCK2, PHYS_INPUT_BUTTON_ATCK2(this)); CS(this).pressedkeys = keys; // store for other users