- Duke: Repair issues with going underwater after taking some stuff out of the global state.

* Really, need to do something about this `crouch_toggle` malarkey...
This commit is contained in:
Mitchell Richters 2023-03-18 19:17:28 +11:00
parent b07732bae4
commit 292030b59e

View file

@ -533,7 +533,7 @@ static void processInputBits(player_struct *p, HIDInput* const hidInput)
ApplyGlobalInput(loc, hidInput);
if (isRR() && (loc.actions & SB_CROUCH)) loc.actions &= ~SB_JUMP;
if (!crouchable || disableToggle)
if (crouch_toggle && (!crouchable || disableToggle))
{
crouch_toggle = false;
loc.actions &= ~SB_CROUCH;