mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +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));
|
memset(KeyStatus, 0, sizeof(KeyStatus));
|
||||||
AnyKeyStatus = false;
|
AnyKeyStatus = false;
|
||||||
|
ActionsToSend = 0;
|
||||||
WeaponToSend = 0;
|
WeaponToSend = 0;
|
||||||
dpad_lock = 0;
|
dpad_lock = 0;
|
||||||
|
crouch_toggle = false;
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
buttonMap.ResetButtonStates(); // this is important. If all input is cleared, the buttons must be cleared as well.
|
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();
|
resetTurnHeldAmt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue