mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-23 01:11:30 +00:00
- 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:
parent
85cce1128a
commit
40ffb23b44
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue