aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-11 16:55:25 +0000
committerMatthew Hoops2010-12-11 16:55:25 +0000
commit43aa47dd311da8afe47cbf1e1964dedf98506584 (patch)
treedcd9de4b8461634aa76657637022bd3a2f296d8d
parentadc7dc0785087d4dd4c59fd418f499e5cc7572ce (diff)
downloadscummvm-rg350-43aa47dd311da8afe47cbf1e1964dedf98506584.tar.gz
scummvm-rg350-43aa47dd311da8afe47cbf1e1964dedf98506584.tar.bz2
scummvm-rg350-43aa47dd311da8afe47cbf1e1964dedf98506584.zip
MOHAWK: Fix loading with non-Selenitic red/blue pages in hand
svn-id: r54865
-rw-r--r--engines/mohawk/myst_saveload.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/engines/mohawk/myst_saveload.cpp b/engines/mohawk/myst_saveload.cpp
index d574055ba1..a88c1fc763 100644
--- a/engines/mohawk/myst_saveload.cpp
+++ b/engines/mohawk/myst_saveload.cpp
@@ -88,19 +88,14 @@ bool MystSaveLoad::loadGame(const Common::String &filename) {
_vm->changeToStack(kIntroStack);
// Set our default cursor
- switch (_v->globals.heldPage) {
- case 2:
+ if (_v->globals.heldPage == 0 || _v->globals.heldPage > 13)
+ _vm->setMainCursor(kDefaultMystCursor);
+ else if (_v->globals.heldPage < 7)
_vm->setMainCursor(kBluePageCursor);
- break;
- case 8:
+ else if (_v->globals.heldPage < 13)
_vm->setMainCursor(kRedPageCursor);
- break;
- case 12:
+ else // if (_v->globals.heldPage == 13)
_vm->setMainCursor(kWhitePageCursor);
- break;
- default:
- _vm->setMainCursor(kDefaultMystCursor);
- }
// Set us to the linking book
_vm->changeToCard(5, true);