aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/object.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index d7420960e3..c0fa146b71 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -38,7 +38,8 @@ bool Scumm::getClass(int obj, int cls)
if (cls == 32) // CLASS_TOUCHABLE
cls = 24;
- if (cls == 22)
+
+ if (_gameId == GID_INDY3_256 && cls == 22) // Masking fix for Indy3
cls = 21;
}
return (_classData[obj] & (1 << (cls - 1))) != 0;
@@ -57,7 +58,8 @@ void Scumm::putClass(int obj, int cls, bool set)
if (cls == 32) // CLASS_TOUCHABLE
cls = 24;
- if (cls == 22)
+
+ if (_gameId == GID_INDY3_256 && cls == 22) // Masking fix for Indy3
cls = 21;
}