aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/made/script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/made/script.cpp b/engines/made/script.cpp
index 45497b81a7..aa91eea341 100644
--- a/engines/made/script.cpp
+++ b/engines/made/script.cpp
@@ -427,6 +427,8 @@ void ScriptInterpreter::cmd_vsize() {
void ScriptInterpreter::cmd_exit() {
_vm->quitGame();
+ // Make sure the "quit" event is handled immediately
+ _vm->handleEvents();
}
void ScriptInterpreter::cmd_return() {
@@ -434,6 +436,8 @@ void ScriptInterpreter::cmd_return() {
// Check if returning from main function
if (_localStackPos == kScriptStackSize) {
_vm->quitGame();
+ // Make sure the "quit" event is handled immediately
+ _vm->handleEvents();
return;
}