aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_stacks/aspit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/riven_stacks/aspit.cpp')
-rw-r--r--engines/mohawk/riven_stacks/aspit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mohawk/riven_stacks/aspit.cpp b/engines/mohawk/riven_stacks/aspit.cpp
index c8d5dec377..a31aa902ec 100644
--- a/engines/mohawk/riven_stacks/aspit.cpp
+++ b/engines/mohawk/riven_stacks/aspit.cpp
@@ -131,7 +131,7 @@ void ASpit::xaatrusbooknextpage(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 (((_vm->getFeatures() & GF_DEMO) && page == 6) || page == 10)
return;
@@ -236,7 +236,7 @@ void ASpit::xacathbooknextpage(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 == 49)
return;
@@ -346,7 +346,7 @@ void ASpit::xaenablemenuintro(const ArgumentArray &args) {
void ASpit::xademoquit(const ArgumentArray &args) {
// Exactly as it says on the tin. In the demo, this function quits.
- _vm->quitGame();
+ _vm->setGameEnded();
}
void ASpit::xaexittomain(const ArgumentArray &args) {