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

@@ -109,7 +109,8 @@ class GUIEngine {
gui::IGUIElement* parent,
IMenuManager *menumgr,
scene::ISceneManager* smgr,
MainMenuData* data);
MainMenuData* data,
bool& kill);
/** default destructor */
virtual ~GUIEngine();
@@ -159,6 +160,9 @@ class GUIEngine {
/** the formspec menu */
GUIFormSpecMenu* m_menu;
/** reference to kill variable managed by SIGINT handler */
bool& m_kill;
/** variable used to abort menu and return back to main game handling */
bool m_startgame;