mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +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());
|
wm->PutWindowBehind(control.m_window, wm->GetPutInFrontSentinel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MainMenuUIMouseMove(Window *window, MainMenuUIState::ControlID controlID, const Point &localPoint)
|
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:
|
case MainMenuUIState::Control_NewGame:
|
||||||
DismissMainMenuUIPage();
|
DismissMainMenuUIPage();
|
||||||
DoGameMenu(iNewGame);
|
DoGameMenu(iNewGame);
|
||||||
|
StartMainMenuUI();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MainMenuUIState::Control_LoadSavedGame:
|
case MainMenuUIState::Control_LoadSavedGame:
|
||||||
@@ -459,7 +460,7 @@ bool HandleMainMenuUIClick(Window *window, const Point &pt)
|
|||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
TimeTaggedVOSEvent evt;
|
TimeTaggedVOSEvent evt;
|
||||||
if (WaitForEvent(&evt, 1))
|
if (WaitForEvent(&evt, 1))
|
||||||
{
|
{
|
||||||
if (evt.m_vosEvent.m_eventType == GpVOSEventTypes::kMouseInput)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user