Skip to content
Permalink
Browse files

HDB: Remove unused static in setButtons

  • Loading branch information...
Strangerke committed Sep 8, 2019
1 parent 7a05624 commit feafd2a9565f51a487216a21ec59273cd9be6eaa
Showing with 1 addition and 3 deletions.
  1. +1 −3 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);

0 comments on commit feafd2a

Please sign in to comment.
You can’t perform that action at this time.