aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorDavid Turner2010-12-16 20:52:18 +0000
committerDavid Turner2010-12-16 20:52:18 +0000
commite3eddf32e97f2f357b6194218ead31731b4043bc (patch)
treed504a5d2f0455866e6614fe7bd0e00e6266d5c22 /engines/mohawk
parenteac4a641435af9fa365715a0ad2e16fa4ea71db1 (diff)
downloadscummvm-rg350-e3eddf32e97f2f357b6194218ead31731b4043bc.tar.gz
scummvm-rg350-e3eddf32e97f2f357b6194218ead31731b4043bc.tar.bz2
scummvm-rg350-e3eddf32e97f2f357b6194218ead31731b4043bc.zip
MYST: Add Var Getter For Myst Courtyard Box Variables.
svn-id: r54937
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/myst_stacks/myst.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp
index 0c0c16ebbb..b108276bb6 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -324,6 +324,21 @@ uint16 MystScriptParser_Myst::getVar(uint16 var) {
} else {
return 0;
}
+ case 26: // Courtyard Image Box - Cross
+ case 27: // Courtyard Image Box - Leaf
+ case 28: // Courtyard Image Box - Arrow
+ case 29: // Courtyard Image Box - Eye
+ case 30: // Courtyard Image Box - Snake
+ case 31: // Courtyard Image Box - Spider
+ case 32: // Courtyard Image Box - Anchor
+ case 33: // Courtyard Image Box - Ostrich
+ if (!_tempVar) {
+ return 0;
+ } else if (myst.courtyardImageBoxes & (0x01 << (var - 26))) {
+ return 2;
+ } else {
+ return 1;
+ }
case 37: // Clock Tower Control Wheels Position
return 3 * ((myst.clockTowerMinutePosition / 5) % 3) + myst.clockTowerHourPosition % 3;
case 41: // Dock Marker Switch Vault State