aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorBastien Bouclet2010-11-30 20:25:21 +0000
committerBastien Bouclet2010-11-30 20:25:21 +0000
commit9fddad6faf0d81107b362c7c6046366a27c604d3 (patch)
treecc7805d1c02eaec080ae0216c5a64286f4e81237 /engines/mohawk
parentaf79de331efc4495e33642e21af201ee93a399de (diff)
downloadscummvm-rg350-9fddad6faf0d81107b362c7c6046366a27c604d3.tar.gz
scummvm-rg350-9fddad6faf0d81107b362c7c6046366a27c604d3.tar.bz2
scummvm-rg350-9fddad6faf0d81107b362c7c6046366a27c604d3.zip
MOHAWK: Set the maze runner initial direction. Remove a hack that is not needed anymore thanks to keeping the old stack when changing stack.
svn-id: r54686
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/myst_scripts.cpp15
-rw-r--r--engines/mohawk/myst_stacks/selenitic.cpp1
2 files changed, 7 insertions, 9 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp
index b650ff6d2f..9c21887e43 100644
--- a/engines/mohawk/myst_scripts.cpp
+++ b/engines/mohawk/myst_scripts.cpp
@@ -867,15 +867,12 @@ void MystScriptParser::o_changeStack(uint16 op, uint16 var, uint16 argc, uint16
// TODO: Play Flyby Entry Movie on Masterpiece Edition..? Only on Myst to Age Link?
- // TODO: Fix properly. Past this point the class may have been destroyed
- // and thus class instance data is not available anymore
- MohawkEngine_Myst *vm = _vm;
- vm->changeToStack(stack_map[targetStack]);
- vm->changeToCard(start_card[targetStack], true);
-
- handle = vm->_sound->playSound(soundIdLinkDst);
- while (vm->_mixer->isSoundHandleActive(*handle))
- vm->_system->delayMillis(10);
+ _vm->changeToStack(stack_map[targetStack]);
+ _vm->changeToCard(start_card[targetStack], true);
+
+ handle = _vm->_sound->playSound(soundIdLinkDst);
+ while (_vm->_mixer->isSoundHandleActive(*handle))
+ _vm->_system->delayMillis(10);
}
} else
unknown(op, var, argc, argv);
diff --git a/engines/mohawk/myst_stacks/selenitic.cpp b/engines/mohawk/myst_stacks/selenitic.cpp
index 84cb1f884d..daf4953561 100644
--- a/engines/mohawk/myst_stacks/selenitic.cpp
+++ b/engines/mohawk/myst_stacks/selenitic.cpp
@@ -43,6 +43,7 @@ MystScriptParser_Selenitic::MystScriptParser_Selenitic(MohawkEngine_Myst *vm) :
setupOpcodes();
_invokingResource = NULL;
_mazeRunnerPosition = 288;
+ _mazeRunnerDirection = 8;
}
MystScriptParser_Selenitic::~MystScriptParser_Selenitic() {