diff options
author | Strangerke | 2019-09-08 22:15:15 +0200 |
---|---|---|
committer | Strangerke | 2019-09-08 22:15:15 +0200 |
commit | feafd2a9565f51a487216a21ec59273cd9be6eaa (patch) | |
tree | 0b9328f38f52747a516b022b7ef589c8cd722b1d | |
parent | 7a05624e1b3371a2823a46749083fe4bc9eb4a60 (diff) | |
download | scummvm-rg350-feafd2a9565f51a487216a21ec59273cd9be6eaa.tar.gz scummvm-rg350-feafd2a9565f51a487216a21ec59273cd9be6eaa.tar.bz2 scummvm-rg350-feafd2a9565f51a487216a21ec59273cd9be6eaa.zip |
HDB: Remove unused static in setButtons
-rw-r--r-- | engines/hdb/input.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); |