From 4aae71f0ee7d396b27dd8314407cdd8be28eac62 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 2 Jan 2021 10:00:29 +1100 Subject: [PATCH] - InputState::ClearAllInput(): Call `resetTurnHeldAmt()` when clearing input. --- source/core/inputstate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/core/inputstate.cpp b/source/core/inputstate.cpp index 9593ba436..5cc38d4ad 100644 --- a/source/core/inputstate.cpp +++ b/source/core/inputstate.cpp @@ -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(); }