aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
authorJonathan Gray2002-11-10 09:14:20 +0000
committerJonathan Gray2002-11-10 09:14:20 +0000
commit18506e771464649ef853f34f8ae85604b1681ab3 (patch)
tree2e1e6cc0b55cccada5faa2660ee14c283cc99add /scumm/object.cpp
parentd21e0a33735c9604ad00de1688ed1fa1ba4a1765 (diff)
downloadscummvm-rg350-18506e771464649ef853f34f8ae85604b1681ab3.tar.gz
scummvm-rg350-18506e771464649ef853f34f8ae85604b1681ab3.tar.bz2
scummvm-rg350-18506e771464649ef853f34f8ae85604b1681ab3.zip
properly translate class, read (i want my trains back), I'm told this will require regression testing for at least loom and zak by ender
svn-id: r5481
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 1966e2fd67..d7420960e3 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -38,6 +38,8 @@ bool Scumm::getClass(int obj, int cls)
if (cls == 32) // CLASS_TOUCHABLE
cls = 24;
+ if (cls == 22)
+ cls = 21;
}
return (_classData[obj] & (1 << (cls - 1))) != 0;
}
@@ -55,6 +57,8 @@ void Scumm::putClass(int obj, int cls, bool set)
if (cls == 32) // CLASS_TOUCHABLE
cls = 24;
+ if (cls == 22)
+ cls = 21;
}
if (set)