diff options
author | Bastien Bouclet | 2010-12-19 07:26:34 +0000 |
---|---|---|
committer | Bastien Bouclet | 2010-12-19 07:26:34 +0000 |
commit | c2bae4b35beeaf500a99253d4792a23e602dce9e (patch) | |
tree | 75c2806c8039735a2d053a3f8847436b33355f70 | |
parent | c3fdcef75180d3acf32dace78970f3040cf9d451 (diff) | |
download | scummvm-rg350-c2bae4b35beeaf500a99253d4792a23e602dce9e.tar.gz scummvm-rg350-c2bae4b35beeaf500a99253d4792a23e602dce9e.tar.bz2 scummvm-rg350-c2bae4b35beeaf500a99253d4792a23e602dce9e.zip |
MOHAWK: Add 2 Myst var getter / setters
svn-id: r54960
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index dfab619139..bc4869519f 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -365,10 +365,17 @@ uint16 MystScriptParser_Myst::getVar(uint16 var) { } else { return 1; } - //case 34: // FIXME: Sound Control In Dock Vault - // return 0; - // return 1; - // return 2; + case 34: // Sound Control In Dock forechamber + if (myst.imagerActive) { + if (myst.imagerSelection == 40 && !myst.imagerMountainErased) + return 1; + else if (myst.imagerSelection == 67 && !myst.imagerWaterErased) + return 2; + else + return 0; + } else { + return 0; + } case 35: // Dock Forechamber Imager Control Left Digit if (myst.imagerSelection > 9) return myst.imagerSelection / 10 - 1; @@ -652,8 +659,8 @@ bool MystScriptParser_Myst::setVarValue(uint16 var, uint16 value) { case 304: // Myst Library Image Present on Tower Rotation Map _towerRotationMapInitialized = value; break; - //case 309: // FIXME: Red/Blue Book Opened - // break; + case 309: // Tree stopped + _treeStopped = value; default: refresh = MystScriptParser::setVarValue(var, value); break; |