mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 14:42:24 +01:00
MainMenuManager: fix FIXME (#15414)
This commit is contained in:
parent
af61de7777
commit
1c92d6243f
@ -1219,8 +1219,7 @@ void Game::shutdown()
|
|||||||
|
|
||||||
/* cleanup menus */
|
/* cleanup menus */
|
||||||
while (g_menumgr.menuCount() > 0) {
|
while (g_menumgr.menuCount() > 0) {
|
||||||
g_menumgr.m_stack.front()->setVisible(false);
|
g_menumgr.deleteFront();
|
||||||
g_menumgr.deletingMenu(g_menumgr.m_stack.front());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_game_ui->deleteFormspec();
|
m_game_ui->deleteFormspec();
|
||||||
|
@ -70,6 +70,12 @@ public:
|
|||||||
return m_stack.size();
|
return m_stack.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void deleteFront()
|
||||||
|
{
|
||||||
|
m_stack.front()->setVisible(false);
|
||||||
|
deletingMenu(m_stack.front());
|
||||||
|
}
|
||||||
|
|
||||||
bool pausesGame()
|
bool pausesGame()
|
||||||
{
|
{
|
||||||
for (gui::IGUIElement *i : m_stack) {
|
for (gui::IGUIElement *i : m_stack) {
|
||||||
@ -80,7 +86,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: why isn't this private?
|
private:
|
||||||
std::list<gui::IGUIElement*> m_stack;
|
std::list<gui::IGUIElement*> m_stack;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user