diff options
author | Bastien Bouclet | 2017-07-29 18:20:45 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-07-29 18:20:45 +0200 |
commit | 69c1f70818aaf83f97bf7131cdf9423c0a75027f (patch) | |
tree | 787e2293f0a2785cbb2c173a83106c5c3efb41c1 /engines/mohawk/riven_stacks/bspit.cpp | |
parent | 8c587b54ab92a5f21fae2c1db8ebdedaf61b521e (diff) | |
download | scummvm-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_stacks/bspit.cpp')
-rw-r--r-- | engines/mohawk/riven_stacks/bspit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mohawk/riven_stacks/bspit.cpp b/engines/mohawk/riven_stacks/bspit.cpp index 51d3656761..b1ba5abd7b 100644 --- a/engines/mohawk/riven_stacks/bspit.cpp +++ b/engines/mohawk/riven_stacks/bspit.cpp @@ -126,7 +126,7 @@ void BSpit::xblabbooknextpage(const ArgumentArray &args) { // Keep turning pages while the mouse is pressed bool firstPageTurn = true; - while ((mouseIsDown() || firstPageTurn) && !_vm->shouldQuit()) { + while ((mouseIsDown() || firstPageTurn) && !_vm->hasGameEnded()) { // Check for the last page if (page == 22) return; @@ -313,7 +313,7 @@ void BSpit::xbait(const ArgumentArray &args) { _vm->_cursor->setCursor(kRivenPelletCursor); // Loop until the player lets go (or quits) - while (mouseIsDown() && !_vm->shouldQuit()) { + while (mouseIsDown() && !_vm->hasGameEnded()) { _vm->doFrame(); } @@ -369,7 +369,7 @@ void BSpit::xbaitplate(const ArgumentArray &args) { _vm->getCard()->drawPicture(3); // Loop until the player lets go (or quits) - while (mouseIsDown() && !_vm->shouldQuit()) { + while (mouseIsDown() && !_vm->hasGameEnded()) { _vm->doFrame(); } @@ -485,7 +485,7 @@ void BSpit::xbchipper(const ArgumentArray &args) { Common::Point startPos = getMouseDragStartPosition(); bool pulledLever = false; - while (mouseIsDown() && !_vm->shouldQuit()) { + while (mouseIsDown() && !_vm->hasGameEnded()) { Common::Point pos = getMousePosition(); if (pos.y > startPos.y) { pulledLever = true; |