diff options
author | Colin Snover | 2017-09-03 13:42:27 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-03 20:58:10 -0500 |
commit | d6139890fec62a4c8e5d050bc6d3d75423fb2b85 (patch) | |
tree | 2bc4d1e917284c2557fcdf1ddb5220336f27377e | |
parent | aa2028402701d565e72165af7213451d6c049a76 (diff) | |
download | scummvm-rg350-d6139890fec62a4c8e5d050bc6d3d75423fb2b85.tar.gz scummvm-rg350-d6139890fec62a4c8e5d050bc6d3d75423fb2b85.tar.bz2 scummvm-rg350-d6139890fec62a4c8e5d050bc6d3d75423fb2b85.zip |
SCI32: Exit early from screen shake if engine is quitting
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |