1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Allow SIGINT to kill mainmenu again

This commit is contained in:
Kahrl 2013-08-19 14:55:38 +02:00
parent 4242782dc2
commit ade70fe4b9
5 changed files with 11 additions and 15 deletions

View file

@ -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;
}