From: sapier Date: Sat, 24 May 2014 11:05:10 +0000 (+0200) Subject: Hide pause menu prior drawing "shutting down..." message X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=660e63688761dc08558de030a53464d39a6ec85f;p=zefram%2Fminetest%2Fminetest_engine.git Hide pause menu prior drawing "shutting down..." message --- diff --git a/src/game.cpp b/src/game.cpp index d7dfa11b..ef0d3a55 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.");