mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- let M_ClearMenus destroy all open menus so that they can properly deinitialize.
This commit is contained in:
parent
fb52b034b0
commit
c0f588e234
1 changed files with 4 additions and 3 deletions
|
@ -769,10 +769,11 @@ void M_Drawer (void)
|
||||||
void M_ClearMenus()
|
void M_ClearMenus()
|
||||||
{
|
{
|
||||||
M_DemoNoPlay = false;
|
M_DemoNoPlay = false;
|
||||||
if (CurrentMenu != nullptr)
|
while (CurrentMenu != nullptr)
|
||||||
{
|
{
|
||||||
|
DMenu* parent = CurrentMenu->mParentMenu;
|
||||||
CurrentMenu->Destroy();
|
CurrentMenu->Destroy();
|
||||||
CurrentMenu = nullptr;
|
CurrentMenu = parent;
|
||||||
}
|
}
|
||||||
V_SetBorderNeedRefresh();
|
V_SetBorderNeedRefresh();
|
||||||
menuactive = MENU_Off;
|
menuactive = MENU_Off;
|
||||||
|
|
Loading…
Reference in a new issue