From d6139890fec62a4c8e5d050bc6d3d75423fb2b85 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 3 Sep 2017 13:42:27 -0500 Subject: SCI32: Exit early from screen shake if engine is quitting --- engines/sci/graphics/frameout.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 4e28f80817..9a7bfc804a 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -1164,6 +1164,10 @@ void GfxFrameout::shakeScreen(int16 numShakes, const ShakeDirection direction) { } while (numShakes--) { + if (g_engine->shouldQuit()) { + break; + } + if (direction & kShakeVertical) { g_system->setShakePos(_isHiRes ? 8 : 4); } -- cgit v1.2.3