diff options
author | Paul Gilbert | 2015-05-01 20:33:56 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-05-01 20:33:56 -1000 |
commit | 90b35d2381488daa4cf54101ebd8f4b9e8ca0083 (patch) | |
tree | 71c85119cf21ca25fdfe258f5dec06582e8a1895 /engines | |
parent | 8fab80ce4750ad65b6e289614034478cebdf7854 (diff) | |
download | scummvm-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.cpp | 2 |
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; |