aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-09-08 03:06:37 +0000
committerTravis Howell2003-09-08 03:06:37 +0000
commit9e1d85ce4841d63746c9b4f5f264d655fa6f0bda (patch)
treec9dbb172c47e8a02069e8863ed57f0379eef5097
parent6444ebf5dcc4a79e5e66ac4c477dec9a4ce4f62b (diff)
downloadscummvm-rg350-9e1d85ce4841d63746c9b4f5f264d655fa6f0bda.tar.gz
scummvm-rg350-9e1d85ce4841d63746c9b4f5f264d655fa6f0bda.tar.bz2
scummvm-rg350-9e1d85ce4841d63746c9b4f5f264d655fa6f0bda.zip
Correct verb position in mac version of indy3ega
svn-id: r10077
-rw-r--r--scumm/script_v5.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index d43fd9d8e3..5d439e0f8d 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -2385,8 +2385,35 @@ void Scumm_v5::o5_verbOps() {
case 5: /* set xy */
vs->x = getVarOrDirectWord(0x80);
vs->y = getVarOrDirectWord(0x40);
+ // Macintosh verison of indy3ega used different interface, so adjust values.
+ if ((_features & GF_MACINTOSH) && (_gameId == GID_INDY3)) {
+ if ((verb > 0) && (verb < 14) || (verb > 31) && (verb < 35)) {
+ switch (verb) {
+ case 1:
+ case 2:
+ case 9:
+ vs->x += 16;
+ break;
+ case 10:
+ case 11:
+ case 12:
+ vs->x += 36;
+ break;
+ case 4:
+ case 5:
+ case 8:
+ vs->x += 60;
+ break;
+ case 13:
+ case 32:
+ case 33:
+ case 34:
+ vs->x += 90;
+ break;
+ }
+ }
+ } else if (_gameId == GID_LOOM256) {
// FIXME: hack loom notes into right spot
- if (_gameId == GID_LOOM256) {
if ((verb >= 90) && (verb <= 97)) { // Notes
switch (verb) {
case 90: