NANCY: Fix disabled input after state change

Fixed an edge case where input would stay disabled after changing the
game state, rendering the game unplayable.
This commit is contained in:
Kaloyan Chehlarski 2021-05-07 20:41:24 +03:00
parent 9ede2f3c91
commit 1876fd745a

View File

@ -50,9 +50,7 @@ void InputManager::processEvents() {
}
break;
case EVENT_CUSTOM_ENGINE_ACTION_START:
if (_inputBeginState == NancyState::kNone) {
_inputBeginState = g_nancy->getState();
}
_inputBeginState = g_nancy->getState();
switch (event.customType) {
case kNancyActionLeftClick: