From ade70fe4b92202065c17d04f21415848b2c6d419 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 19 Aug 2013 14:55:38 +0200 Subject: Allow SIGINT to kill mainmenu again --- src/script/lua_api/l_mainmenu.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/script') diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 65676eacd..6417d1e18 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -131,11 +131,7 @@ int ModApiMainMenu::l_close(lua_State *L) GUIEngine* engine = getGuiEngine(L); assert(engine != 0); - engine->m_data->kill = true; - - //close menu next time - engine->m_startgame = true; - engine->m_menu->quitMenu(); + engine->m_kill = true; return 0; } -- cgit v1.2.3