mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- InputState::ClearAllInput(): Call resetTurnHeldAmt()
when clearing input.
This commit is contained in:
parent
e65e112281
commit
4aae71f0ee
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
#include "gamestruct.h"
|
||||
#include "d_net.h"
|
||||
#include "gamestate.h"
|
||||
#include "gameinput.h"
|
||||
|
||||
static int WeaponToSend = 0;
|
||||
ESyncBits ActionsToSend = 0;
|
||||
|
@ -125,6 +126,7 @@ void InputState::ClearAllInput()
|
|||
crouch_toggle = false;
|
||||
buttonMap.ResetButtonStates(); // this is important. If all input is cleared, the buttons must be cleared as well.
|
||||
gi->clearlocalinputstate(); // also clear game local input state.
|
||||
resetTurnHeldAmt();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue