aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-07-19 10:50:14 +0000
committerWillem Jan Palenstijn2009-07-19 10:50:14 +0000
commit3c8e328e5cfdecd54b38a4cd239d6a294025b03b (patch)
tree1b3dfe86029830c4934feb4758b0bfa0e9a7a177 /engines/sci/engine
parentbcd98e59e00d18ecab829a1fe2a8fdd98efbd07c (diff)
downloadscummvm-rg350-3c8e328e5cfdecd54b38a4cd239d6a294025b03b.tar.gz
scummvm-rg350-3c8e328e5cfdecd54b38a4cd239d6a294025b03b.tar.bz2
scummvm-rg350-3c8e328e5cfdecd54b38a4cd239d6a294025b03b.zip
SCI: check shouldQuit() in main loop
svn-id: r42609
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/vm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index 14b980d0ed..0f8fee0876 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -654,7 +654,7 @@ void run_vm(EngineState *s, int restoring) {
}
- if (script_abort_flag)
+ if (script_abort_flag || g_engine->shouldQuit())
return; // Emergency
// Debug if this has been requested: