aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-06-30 20:12:34 +0000
committerMax Horn2003-06-30 20:12:34 +0000
commit36899b8200425a6781e21392f0e1598b4dc99d63 (patch)
tree557951b793ca1e113f313cf77941716a503227ee /scumm
parentb421c9fde992191f61f324e9741875e3667a7a87 (diff)
downloadscummvm-rg350-36899b8200425a6781e21392f0e1598b4dc99d63.tar.gz
scummvm-rg350-36899b8200425a6781e21392f0e1598b4dc99d63.tar.bz2
scummvm-rg350-36899b8200425a6781e21392f0e1598b4dc99d63.zip
fix for #740244 and #755863. This appears to have been a long standing bug in the original engine?
svn-id: r8676
Diffstat (limited to 'scumm')
-rw-r--r--scumm/boxes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp
index 3b550fce6b..1f2b9f8f45 100644
--- a/scumm/boxes.cpp
+++ b/scumm/boxes.cpp
@@ -82,6 +82,11 @@ static ScummVM::Point closestPtOnLine(int ulx, int uly, int llx, int lly, int x,
byte Scumm::getMaskFromBox(int box) {
+ // FIXME: see bug #740244 and #755863. This appears to have been a
+ // long standing bug in the original engine?
+ if (_version <= 3 && box == 255)
+ return 1;
+
Box *ptr = getBoxBaseAddr(box);
if (!ptr)
return 0;