From 90b35d2381488daa4cf54101ebd8f4b9e8ca0083 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 1 May 2015 20:33:56 -1000 Subject: SHERLOCK: Allow fast quitting when randomTransition in progress --- engines/sherlock/screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sherlock/screen.cpp') 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; -- cgit v1.2.3