diff options
author | Bastien Bouclet | 2011-08-07 16:48:40 +0200 |
---|---|---|
committer | Bastien Bouclet | 2011-08-07 16:54:20 +0200 |
commit | 2345228643239745423ecb846efc04a5c935bebc (patch) | |
tree | e9a2f8e68b2b91119dd79d6f1ac3ad41f68f2a72 /engines/mohawk/myst.cpp | |
parent | 216d3c5cefc6537a6705dfce91e4b77029a58666 (diff) | |
download | scummvm-rg350-2345228643239745423ecb846efc04a5c935bebc.tar.gz scummvm-rg350-2345228643239745423ecb846efc04a5c935bebc.tar.bz2 scummvm-rg350-2345228643239745423ecb846efc04a5c935bebc.zip |
MOHAWK: Add specific cursor handling for Myst demo
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r-- | engines/mohawk/myst.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index 6bdf163a91..342fa4e78c 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -441,6 +441,7 @@ void MohawkEngine_Myst::changeToStack(uint16 stack, uint16 card, uint16 linkSrcS _scriptParser = new MystStacks::Credits(this); break; case kDemoStack: + _gameState->_globals.currentAge = 0; _scriptParser = new MystStacks::Demo(this); break; case kDniStack: @@ -469,6 +470,7 @@ void MohawkEngine_Myst::changeToStack(uint16 stack, uint16 card, uint16 linkSrcS _scriptParser = new MystStacks::Selenitic(this); break; case kDemoSlidesStack: + _gameState->_globals.currentAge = 1; _scriptParser = new MystStacks::Slides(this); break; case kStoneshipStack: @@ -645,7 +647,11 @@ void MohawkEngine_Myst::changeToCard(uint16 card, bool updateScreen) { for (uint16 i = 0; i < _resources.size(); i++) _resources[i]->handleCardChange(); - // TODO: Handle Script Resources + // The demo resets the cursor at each card change except when in the library + if (getFeatures() & GF_DEMO + && _gameState->_globals.currentAge != 2) { + _cursor->setDefaultCursor(); + } // Make sure the screen is updated if (updateScreen) { |