- Fixed: Jumping and crouching at the same time created jerky results.

Now jumping takes precedence and you can't crouch while pressing the
  jump key (which causes an uncrouch.)

SVN r213 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-22 09:36:48 +00:00
commit a0c912ef2d
3 changed files with 8 additions and 1 deletions

View file

@ -1422,6 +1422,7 @@ void P_PlayerThink (player_t *player)
}
// Handle crouching
if (player->cmd.ucmd.buttons & BT_JUMP) player->cmd.ucmd.buttons &= ~BT_DUCK;
if (player->morphTics == 0 && player->health > 0 && !(dmflags & DF_NO_CROUCH))
{
if (!(player->cheats & CF_TOTALLYFROZEN))