diff options
author | David Turner | 2010-12-20 18:44:25 +0000 |
---|---|---|
committer | David Turner | 2010-12-20 18:44:25 +0000 |
commit | b87bc18d223ec42d797b3db0b42fa0c257041716 (patch) | |
tree | 54b3ffc680879ed961d8800eefb23e237062cfb9 | |
parent | 39fec99f2688d89d728ee4681ded08fa0d812d1a (diff) | |
download | scummvm-rg350-b87bc18d223ec42d797b3db0b42fa0c257041716.tar.gz scummvm-rg350-b87bc18d223ec42d797b3db0b42fa0c257041716.tar.bz2 scummvm-rg350-b87bc18d223ec42d797b3db0b42fa0c257041716.zip |
MOHAWK: Add var getters for Myst Stellar Observatory Date-Time Display.
svn-id: r54980
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 80b83b9ad1..5a9abeae02 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -473,6 +473,23 @@ uint16 MystScriptParser_Myst::getVar(uint16 var) { return myst.observatoryLights; case 72: // Channelwood tree position return myst.treePosition; + case 73: // Stellar Observatory Date - Month + return myst.observatoryMonthSetting; + case 74: // Stellar Observatory Date - Day #1 (Left) + if (myst.observatoryDaySetting / 10 == 0) + return 10; + else + return myst.observatoryDaySetting / 10; + case 75: // Stellar Observatory Date - Day #2 (Right) + return myst.observatoryDaySetting % 10; + case 76: // Stellar Observatory Date - Year #1 (Left) + return (myst.observatoryYearSetting >> 12) & 0x0f; + case 77: // Stellar Observatory Date - Year #2 + return (myst.observatoryYearSetting >> 8) & 0x0f; + case 78: // Stellar Observatory Date - Year #3 + return (myst.observatoryYearSetting >> 4) & 0x0f; + case 79: // Stellar Observatory Date - Year #4 (Right) + return (myst.observatoryYearSetting >> 0) & 0x0f; case 80: // Stellar Observatory Hour #1 - Left ( Number 1 (0) or Blank (10)) if (myst.observatoryTimeSetting % (12 * 60) < (10 * 60)) return 10; |