aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/input.cpp4
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);