aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-01 20:33:56 -1000
committerPaul Gilbert2015-05-01 20:33:56 -1000
commit90b35d2381488daa4cf54101ebd8f4b9e8ca0083 (patch)
tree71c85119cf21ca25fdfe258f5dec06582e8a1895 /engines
parent8fab80ce4750ad65b6e289614034478cebdf7854 (diff)
downloadscummvm-rg350-90b35d2381488daa4cf54101ebd8f4b9e8ca0083.tar.gz
scummvm-rg350-90b35d2381488daa4cf54101ebd8f4b9e8ca0083.tar.bz2
scummvm-rg350-90b35d2381488daa4cf54101ebd8f4b9e8ca0083.zip
SHERLOCK: Allow fast quitting when randomTransition in progress
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index d170772c98..1f56261150 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -216,7 +216,7 @@ void Screen::randomTransition() {
const int TRANSITION_MULTIPLIER = 0x15a4e35;
_dirtyRects.clear();
- for (int idx = 0; idx <= 65535; ++idx) {
+ for (int idx = 0; idx <= 65535 && !_vm->shouldQuit(); ++idx) {
_transitionSeed = _transitionSeed * TRANSITION_MULTIPLIER + 1;
int offset = _transitionSeed & 65535;