diff options
author | Kari Salminen | 2008-08-07 19:04:19 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-07 19:04:19 +0000 |
commit | b8bfd5d04f0436b685ea36a845439e20bb756766 (patch) | |
tree | 4d5d512ec1c30515fdb615308a622ffee5248a8e /engines/cine/main_loop.cpp | |
parent | a30ecc96a070f46fe15f5e1114bc73fdc26b6f2c (diff) | |
download | scummvm-rg350-b8bfd5d04f0436b685ea36a845439e20bb756766.tar.gz scummvm-rg350-b8bfd5d04f0436b685ea36a845439e20bb756766.tar.bz2 scummvm-rg350-b8bfd5d04f0436b685ea36a845439e20bb756766.zip |
Fix for popup boxes sometimes blocking animation when they shouldn't in Operation Stealth:
- Made waitForPlayerClick updating more like in the original.
- Moved removeMessages to after the frame drawing in main loop hoping to be more like the original.
- Added an additional test to Operation Stealth's implementation of overlay type 2 drawing.
- Added an additional parameter incrementing and testing to Operation Stealth's removeMessages.
Hopefully this won't cause any regressions in Future Wars!
svn-id: r33686
Diffstat (limited to 'engines/cine/main_loop.cpp')
-rw-r--r-- | engines/cine/main_loop.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index 9be2184f91..80a8905465 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -311,6 +311,11 @@ void CineEngine::mainLoop(int bootScriptIdx) { renderer->drawFrame(); } + // NOTE: In the original Future Wars and Operation Stealth messages + // were removed when running the drawOverlays function which is + // currently called from the renderer's drawFrame function. + removeMessages(); + if (waitForPlayerClick) { playerAction = false; @@ -340,8 +345,6 @@ void CineEngine::mainLoop(int bootScriptIdx) { } while (mouseButton != 0); waitForPlayerClick = 0; - - removeMessages(); } if (checkForPendingDataLoadSwitch) { |