diff --git a/source/core/inputstate.cpp b/source/core/inputstate.cpp index 6eeea8c2d..04915ec8f 100644 --- a/source/core/inputstate.cpp +++ b/source/core/inputstate.cpp @@ -126,6 +126,7 @@ void InputState::ClearAllInput() ActionsToSend = 0; WeaponToSend = 0; dpad_lock = 0; + lastCheck = 0; 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. } diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index c1242ae2c..0df2701f9 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -43,7 +43,6 @@ BEGIN_DUKE_NS // State timer counters. static int turnheldtime; static int lastcontroltime; -static double lastCheck; static InputPacket loc; // input accumulation buffer. //--------------------------------------------------------------------------- @@ -1068,7 +1067,6 @@ void GameInterface::clearlocalinputstate() loc = {}; turnheldtime = 0; lastcontroltime = 0; - lastCheck = 0; }