aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-05-24 13:05:10 +0200
committersapier <Sapier at GMX dot net>2014-05-24 13:45:05 +0200
commit660e63688761dc08558de030a53464d39a6ec85f (patch)
tree432c7d8dc61180f39ebb473c95b8bb1a92f7c1e5 /src
parentc1e297a90a984a9ae392607063d5511a15981e30 (diff)
downloadminetest-660e63688761dc08558de030a53464d39a6ec85f.tar.gz
minetest-660e63688761dc08558de030a53464d39a6ec85f.tar.bz2
minetest-660e63688761dc08558de030a53464d39a6ec85f.zip
Hide pause menu prior drawing "shutting down..." message
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d7dfa11b1..ef0d3a556 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3450,19 +3450,20 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
sky->drop();
clear_particles();
+ /* cleanup menus */
+ while (g_menumgr.menuCount() > 0)
+ {
+ g_menumgr.m_stack.front()->setVisible(false);
+ g_menumgr.deletingMenu(g_menumgr.m_stack.front());
+ }
/*
Draw a "shutting down" screen, which will be shown while the map
generator and other stuff quits
*/
{
- /*gui::IGUIStaticText *gui_shuttingdowntext = */
wchar_t* text = wgettext("Shutting down stuff...");
draw_load_screen(text, device, guienv, font, 0, -1, false);
delete[] text;
- /*driver->beginScene(true, true, video::SColor(255,0,0,0));
- guienv->drawAll();
- driver->endScene();
- gui_shuttingdowntext->remove();*/
}
chat_backend.addMessage(L"", L"# Disconnected.");