diff options
author | Kahrl <kahrl@gmx.net> | 2013-08-19 14:55:38 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-08-19 15:49:36 +0200 |
commit | ade70fe4b92202065c17d04f21415848b2c6d419 (patch) | |
tree | 14fa79b64c8eb744082d13443a01c55ce673b53c /src/script | |
parent | 4242782dc27e7932e050677b92ec8b1a994a4f0d (diff) | |
download | minetest-ade70fe4b92202065c17d04f21415848b2c6d419.tar.gz minetest-ade70fe4b92202065c17d04f21415848b2c6d419.tar.bz2 minetest-ade70fe4b92202065c17d04f21415848b2c6d419.zip |
Allow SIGINT to kill mainmenu again
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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; } |