diff options
author | Bastien Bouclet | 2010-12-20 07:58:45 +0000 |
---|---|---|
committer | Bastien Bouclet | 2010-12-20 07:58:45 +0000 |
commit | 9c23440ae4ee63e0d4841e25b2ddedc7485cc391 (patch) | |
tree | ee6e382b02784d7dc4e38d70d0b6a3b88cf417b7 /engines/mohawk/myst_stacks | |
parent | 3cc456bf2afa73d65f01d493594d19ef2f0efdbf (diff) | |
download | scummvm-rg350-9c23440ae4ee63e0d4841e25b2ddedc7485cc391.tar.gz scummvm-rg350-9c23440ae4ee63e0d4841e25b2ddedc7485cc391.tar.bz2 scummvm-rg350-9c23440ae4ee63e0d4841e25b2ddedc7485cc391.zip |
MOHAWK: Fix 2 crashers with the Myst imager (selecting 00 and playing the moutain video).
svn-id: r54973
Diffstat (limited to 'engines/mohawk/myst_stacks')
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 9094b05799..80b83b9ad1 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -392,7 +392,7 @@ uint16 MystScriptParser_Myst::getVar(uint16 var) { else return 9; case 36: // Dock Forechamber Imager Control Right Digit - return (myst.imagerSelection - 1) % 10; + return (10 + myst.imagerSelection - 1) % 10; case 37: // Clock Tower Control Wheels Position return 3 * ((myst.clockTowerMinutePosition / 5) % 3) + myst.clockTowerHourPosition % 3; case 40: // Gears Open State @@ -1139,6 +1139,7 @@ void MystScriptParser_Myst::o_imagerPlayButton(uint16 op, uint16 var, uint16 arg myst.imagerActive = 1; } + break; case 2: // Water if (myst.imagerActive) { _vm->_sound->replaceSound(argv[1]); @@ -1154,6 +1155,7 @@ void MystScriptParser_Myst::o_imagerPlayButton(uint16 op, uint16 var, uint16 arg myst.imagerActive = 1; } + break; } _vm->_cursor->showCursor(); |