HDB: Remove unused static in setButtons

This commit is contained in:
Strangerke 2019-09-08 22:15:15 +02:00
parent 7a05624e1b
commit feafd2a956

View File

@ -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);