Remove calls to window_close(Game_wind) within close_editor

These are redundant. Will remove all cases of window_close(Game_wind) - it's safer for the handler to return window_event_result::close.
This commit is contained in:
Chris Taylor 2016-12-24 16:31:26 +08:00
parent f339e60606
commit b7c41a0d98

View file

@ -921,13 +921,9 @@ static void close_editor()
switch (ModeFlag)
{
case 1:
if (Game_wind)
window_close(Game_wind);
break;
case 2:
if (Game_wind)
window_close(Game_wind);
set_screen_mode(SCREEN_MENU); //put up menu screen
show_menus();
break;