- Duke: Directly check the backend input code's crouch_toggle to always remain crouched after pausing, even if the first tic doesn't have input.

* This is needed because unlike the other games, Duke doesn't have any decent state manager for the player like Blood and SW do.
This commit is contained in:
Mitchell Richters 2022-01-13 21:44:51 +11:00
parent 85cce1128a
commit 40ffb23b44
2 changed files with 2 additions and 2 deletions

View file

@ -1867,7 +1867,7 @@ static void movement(int snum, ESyncBits actions, sectortype* psect, int fz, int
p->on_warping_sector = 0;
if (actions & SB_CROUCH)
if ((actions & SB_CROUCH) || crouch_toggle)
{
playerCrouch(snum);
}

View file

@ -2228,7 +2228,7 @@ static void movement(int snum, ESyncBits actions, sectortype* psect, int fz, int
p->on_warping_sector = 0;
if ((actions & SB_CROUCH) && !p->OnMotorcycle)
if (((actions & SB_CROUCH) || crouch_toggle) && !p->OnMotorcycle)
{
playerCrouch(snum);
}