Call endwin() every time we leave, just in case.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@429 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2008-03-23 16:55:32 +00:00
parent d5a33f3ad2
commit 7dfa5ca681
2 changed files with 1 additions and 4 deletions

View File

@ -785,7 +785,6 @@ drawgamemenu(int game)
if (check_retard(0))
{
endwin();
graceful_exit (119);
}
@ -834,7 +833,6 @@ drawmenu ()
if (check_retard(0))
{
endwin();
graceful_exit (119);
}
}
@ -1815,7 +1813,6 @@ menuloop (void)
break;
case ERR:
case 'q':
endwin ();
graceful_exit(0);
/* break; */
case 'r':

View File

@ -223,7 +223,6 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
if (!loggedin && globalconfig.allow_registration) newuser();
break;
case DGLCMD_QUIT:
endwin();
graceful_exit(0);
/* break; */
}
@ -423,6 +422,7 @@ graceful_exit (int status)
}
This doesn't work. Ever.
*/
endwin();
exit (status);
}