aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_graphics.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2017-07-29 18:20:45 +0200
committerBastien Bouclet2017-07-29 18:20:45 +0200
commit69c1f70818aaf83f97bf7131cdf9423c0a75027f (patch)
tree787e2293f0a2785cbb2c173a83106c5c3efb41c1 /engines/mohawk/riven_graphics.cpp
parent8c587b54ab92a5f21fae2c1db8ebdedaf61b521e (diff)
downloadscummvm-rg350-69c1f70818aaf83f97bf7131cdf9423c0a75027f.tar.gz
scummvm-rg350-69c1f70818aaf83f97bf7131cdf9423c0a75027f.tar.bz2
scummvm-rg350-69c1f70818aaf83f97bf7131cdf9423c0a75027f.zip
MOHAWK: Riven: Let the gameloop gracefully end when quitting
Prevents the quit confirmation dialog from being displayed at the end of the game's ending if it is enabled. Fixes #9943.
Diffstat (limited to 'engines/mohawk/riven_graphics.cpp')
-rw-r--r--engines/mohawk/riven_graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/riven_graphics.cpp b/engines/mohawk/riven_graphics.cpp
index 270b0c88ca..86b70d37ee 100644
--- a/engines/mohawk/riven_graphics.cpp
+++ b/engines/mohawk/riven_graphics.cpp
@@ -546,7 +546,7 @@ void RivenGraphics::runScheduledTransition() {
uint32 startTime = _vm->_system->getMillis();
uint32 timeElapsed = 0;
bool transitionComplete = false;
- while (timeElapsed < _transitionDuration && !transitionComplete && !_vm->shouldQuit()) {
+ while (timeElapsed < _transitionDuration && !transitionComplete && !_vm->hasGameEnded()) {
transitionComplete = effect->drawFrame(timeElapsed);
_vm->doFrame();
@@ -557,7 +557,7 @@ void RivenGraphics::runScheduledTransition() {
effect->drawFrame(_transitionDuration);
}
} else {
- for (uint frame = 1; frame <= _transitionFrames && !_vm->shouldQuit(); frame++) {
+ for (uint frame = 1; frame <= _transitionFrames && !_vm->hasGameEnded(); frame++) {
effect->drawFrame(frame);
_vm->doFrame();