From 38cc094ac3a92b7625f7d62b5abf977c1a259ebb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 Sep 2020 23:35:42 +0200 Subject: [PATCH] - adapt ClearAllInput to new globalized code. --- source/core/inputstate.cpp | 1 + source/games/duke/src/input.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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; }