mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix issue where you can get stuck in pain frames after stepping up, or after sliding (resolves #369).
This commit is contained in:
parent
05ee9c8a21
commit
1dee1da7e3
1 changed files with 2 additions and 0 deletions
|
@ -5962,6 +5962,8 @@ static void P_3dMovement(player_t *player)
|
|||
// When sliding, don't allow forward/back
|
||||
if (player->pflags & PF_SLIDING)
|
||||
cmd->forwardmove = 0;
|
||||
else if (onground && player->mo->state == states+S_PLAY_PAIN)
|
||||
P_SetPlayerMobjState(player->mo, S_PLAY_WALK);
|
||||
|
||||
player->aiming = cmd->aiming<<FRACBITS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue