aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: