aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-09 15:49:38 +0000
committerFilippos Karapetis2008-05-09 15:49:38 +0000
commit3f3ba85bf1d0dec2e4b62b4f843e94ec6e3597f2 (patch)
tree296f788b8956a213ccf6fb98b53fd03072c2f97d /engines
parenta83d79bafd5b4e15d4e4fbfbed35ab2ea878dc12 (diff)
downloadscummvm-rg350-3f3ba85bf1d0dec2e4b62b4f843e94ec6e3597f2.tar.gz
scummvm-rg350-3f3ba85bf1d0dec2e4b62b4f843e94ec6e3597f2.tar.bz2
scummvm-rg350-3f3ba85bf1d0dec2e4b62b4f843e94ec6e3597f2.zip
Exit more gracefully when a quit event is triggered
svn-id: r31966
Diffstat (limited to 'engines')
-rw-r--r--engines/made/scriptfuncs_lgop2.cpp3
-rw-r--r--engines/made/scriptfuncs_mhne.cpp3
-rw-r--r--engines/made/scriptfuncs_rtz.cpp3
3 files changed, 3 insertions, 6 deletions
diff --git a/engines/made/scriptfuncs_lgop2.cpp b/engines/made/scriptfuncs_lgop2.cpp
index e563e57cac..cd861da81f 100644
--- a/engines/made/scriptfuncs_lgop2.cpp
+++ b/engines/made/scriptfuncs_lgop2.cpp
@@ -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:
diff --git a/engines/made/scriptfuncs_mhne.cpp b/engines/made/scriptfuncs_mhne.cpp
index f8e02365b0..bfec0a883d 100644
--- a/engines/made/scriptfuncs_mhne.cpp
+++ b/engines/made/scriptfuncs_mhne.cpp
@@ -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:
diff --git a/engines/made/scriptfuncs_rtz.cpp b/engines/made/scriptfuncs_rtz.cpp
index 2cf0e3bc03..7dd8246df0 100644
--- a/engines/made/scriptfuncs_rtz.cpp
+++ b/engines/made/scriptfuncs_rtz.cpp
@@ -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: