Exit more gracefully when a quit event is triggered

svn-id: r31966
This commit is contained in:
Filippos Karapetis 2008-05-09 15:49:38 +00:00
parent a83d79bafd
commit 3f3ba85bf1
3 changed files with 3 additions and 6 deletions

View File

@ -174,8 +174,7 @@ int16 ScriptFunctionsLgop2::o1_EVENT(int16 argc, int16 *argv) {
break;
case Common::EVENT_QUIT:
// TODO: Exit more gracefully.
g_system->quit();
_vm->_quit = true;
break;
default:

View File

@ -179,8 +179,7 @@ int16 ScriptFunctionsMhne::o1_EVENT(int16 argc, int16 *argv) {
break;
case Common::EVENT_QUIT:
// TODO: Exit more gracefully.
g_system->quit();
_vm->_quit = true;
break;
default:

View File

@ -222,8 +222,7 @@ int16 ScriptFunctionsRtz::o1_EVENT(int16 argc, int16 *argv) {
break;
case Common::EVENT_QUIT:
// TODO: Exit more gracefully.
g_system->quit();
_vm->_quit = true;
break;
default: