From 90e3bef2abc762a6458f06c896a76310d8c97944 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 13 Sep 2008 07:22:13 +0000 Subject: [PATCH] - Fixed: Crouching no longer worked due to a bug introduced by the player input code. SVN r1218 (trunk) --- docs/rh-log.txt | 4 ++++ src/p_user.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 1c06b3137..70c62191f 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +September 13, 2008 (Changes by Graf Zahl) +- Fixed: Crouching no longer worked due to a bug introduced by the + player input code. + September 12, 2008 - Added GetPlayerInput() for examining a player's inputs from ACS. Most buttons are now passed across the network, and there are four new user diff --git a/src/p_user.cpp b/src/p_user.cpp index bd01dd01e..fe1ed217d 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -1995,7 +1995,7 @@ void P_PlayerThink (player_t *player) } // Handle crouching - if (player->cmd.ucmd.buttons & BT_CROUCH) + if (player->cmd.ucmd.buttons & BT_JUMP) { player->cmd.ucmd.buttons &= ~BT_CROUCH; }