Revert "- InputState::ClearAllInput(): Only clear crouch_toggle bool if outside of a level, and resend SB_CROUCH sync bit if inside a level and crouch_toggle is true."

This reverts commit c076310e34.

* It's no longer needed with 70706d3da8.
This commit is contained in:
Mitchell Richters 2023-03-29 09:41:56 +11:00
parent 70706d3da8
commit daf63ce209

View file

@ -134,25 +134,12 @@ void InputState::ClearAllInput()
{
memset(KeyStatus, 0, sizeof(KeyStatus));
AnyKeyStatus = false;
ActionsToSend = 0;
WeaponToSend = 0;
dpad_lock = 0;
if (gamestate != GS_LEVEL)
{
ActionsToSend = 0;
crouch_toggle = false;
clearLocalInputBuffer(); // also clear game local input state.
}
else if (gamestate == GS_LEVEL && crouch_toggle)
{
ActionsToSend |= SB_CROUCH;
}
else
{
ActionsToSend = 0;
}
crouch_toggle = false;
buttonMap.ResetButtonStates(); // this is important. If all input is cleared, the buttons must be cleared as well.
clearLocalInputBuffer(); // also clear game local input state.
resetTurnHeldAmt();
}