aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-08-19 14:55:38 +0200
committerKahrl <kahrl@gmx.net>2013-08-19 15:49:36 +0200
commitade70fe4b92202065c17d04f21415848b2c6d419 (patch)
tree14fa79b64c8eb744082d13443a01c55ce673b53c /src/script
parent4242782dc27e7932e050677b92ec8b1a994a4f0d (diff)
downloadminetest-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.cpp6
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;
}