Fix sticking quit menu of kart selection screen

This commit is contained in:
Benau 2020-02-03 16:40:08 +08:00
parent 7ba8dfd0a0
commit 5683ff7494

View File

@ -751,7 +751,10 @@ void InputManager::dispatchInput(Input::InputType type, int deviceID,
action == PA_MENU_CANCEL ) )
{
// returns true if the event was handled
if (KartSelectionScreen::getRunningInstance()->playerQuit( player ))
// Ignore release event (otherwise it exit the kart selection screen
// when back from race setup screen)
if (value != 0 &&
KartSelectionScreen::getRunningInstance()->playerQuit( player ))
{
return; // we're done here
}