mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Fix crash when ending game on mobile
This commit is contained in:
@@ -341,7 +341,7 @@ void HandleMainMenuUIResolutionChange()
|
||||
|
||||
wm->PutWindowBehind(control.m_window, wm->GetPutInFrontSentinel());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void MainMenuUIMouseMove(Window *window, MainMenuUIState::ControlID controlID, const Point &localPoint)
|
||||
@@ -371,6 +371,7 @@ static void HandleMainMenuUISelection(MainMenuUIState::ControlID controlID)
|
||||
case MainMenuUIState::Control_NewGame:
|
||||
DismissMainMenuUIPage();
|
||||
DoGameMenu(iNewGame);
|
||||
StartMainMenuUI();
|
||||
break;
|
||||
|
||||
case MainMenuUIState::Control_LoadSavedGame:
|
||||
@@ -459,7 +460,7 @@ bool HandleMainMenuUIClick(Window *window, const Point &pt)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
TimeTaggedVOSEvent evt;
|
||||
TimeTaggedVOSEvent evt;
|
||||
if (WaitForEvent(&evt, 1))
|
||||
{
|
||||
if (evt.m_vosEvent.m_eventType == GpVOSEventTypes::kMouseInput)
|
||||
@@ -484,8 +485,8 @@ bool HandleMainMenuUIClick(Window *window, const Point &pt)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user