aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_video.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_video.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_video.cpp')
-rw-r--r--engines/mohawk/riven_video.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/riven_video.cpp b/engines/mohawk/riven_video.cpp
index fd2b0c6d54..6923fbd4d1 100644
--- a/engines/mohawk/riven_video.cpp
+++ b/engines/mohawk/riven_video.cpp
@@ -236,7 +236,7 @@ void RivenVideo::playBlocking(int32 endTime) {
}
bool continuePlaying = true;
- while (!endOfVideo() && !_vm->shouldQuit() && continuePlaying) {
+ while (!endOfVideo() && !_vm->hasGameEnded() && continuePlaying) {
// Draw a frame
_vm->doFrame();