mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
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 commitc076310e34
. * It's no longer needed with70706d3da8
.
This commit is contained in:
parent
70706d3da8
commit
daf63ce209
1 changed files with 3 additions and 16 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue