aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks/credits.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-04-26 22:12:58 +0200
committerBastien Bouclet2018-04-26 22:12:58 +0200
commit3d2509a89c1a1fa668532ed71c99b21a255e7046 (patch)
treeb4e4fa8aa2d413ed8330e617bcdef9288de54310 /engines/mohawk/myst_stacks/credits.cpp
parentab7cdc5907910e2c72bad80fb6ef6161ab7a0990 (diff)
downloadscummvm-rg350-3d2509a89c1a1fa668532ed71c99b21a255e7046.tar.gz
scummvm-rg350-3d2509a89c1a1fa668532ed71c99b21a255e7046.tar.bz2
scummvm-rg350-3d2509a89c1a1fa668532ed71c99b21a255e7046.zip
MOHAWK: MYST: Reset the main cursor when starting the credits
The credit stack does not have the data required to display all the cursors, especially the page cursors. Fixes Trac#10501.
Diffstat (limited to 'engines/mohawk/myst_stacks/credits.cpp')
-rw-r--r--engines/mohawk/myst_stacks/credits.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/credits.cpp b/engines/mohawk/myst_stacks/credits.cpp
index 2d3b3669c2..5daa73d106 100644
--- a/engines/mohawk/myst_stacks/credits.cpp
+++ b/engines/mohawk/myst_stacks/credits.cpp
@@ -23,6 +23,7 @@
#include "mohawk/myst.h"
#include "mohawk/myst_areas.h"
#include "mohawk/myst_graphics.h"
+#include "mohawk/cursors.h"
#include "mohawk/sound.h"
#include "mohawk/video.h"
#include "mohawk/myst_stacks/credits.h"
@@ -89,6 +90,10 @@ uint16 Credits::getVar(uint16 var) {
}
void Credits::o_runCredits(uint16 var, const ArgumentsArray &args) {
+ // The credits stack does not have all the cursors, reset to the default cursor.
+ _globals.heldPage = kNoPage;
+ _vm->setMainCursor(kDefaultMystCursor);
+
// Activate the credits
_creditsRunning = true;
_curImage = 0;