From feafd2a9565f51a487216a21ec59273cd9be6eaa Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 8 Sep 2019 22:15:15 +0200 Subject: HDB: Remove unused static in setButtons --- engines/hdb/input.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp index 3078d69291..df6d02e002 100644 --- a/engines/hdb/input.cpp +++ b/engines/hdb/input.cpp @@ -52,14 +52,12 @@ void Input::init() { } void Input::setButtons(uint16 b) { - static int changeState = 0; - _buttons = b; if (!b) return; // Change Game State - if ((_buttons & kButtonA) && !changeState && (g_hdb->getGameState() != GAME_MENU)) { + if ((_buttons & kButtonA) && (g_hdb->getGameState() != GAME_MENU)) { if (g_hdb->_ai->cinematicsActive() && g_hdb->_ai->cineAbortable()) { g_hdb->_ai->cineAbort(); g_hdb->_sound->playSound(SND_POP); -- cgit v1.2.3