aboutsummaryrefslogtreecommitdiff
path: root/boxes.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-03-11 08:34:12 +0000
committerVincent Hamm2002-03-11 08:34:12 +0000
commit74694139df8670880248e7f6765a1749fdbf3d95 (patch)
treea35cfbf58912df1d6b1bc50b8a6033a595d4becf /boxes.cpp
parente776c275112468897d1eece443be82f9dfe63b67 (diff)
downloadscummvm-rg350-74694139df8670880248e7f6765a1749fdbf3d95.tar.gz
scummvm-rg350-74694139df8670880248e7f6765a1749fdbf3d95.tar.bz2
scummvm-rg350-74694139df8670880248e7f6765a1749fdbf3d95.zip
Fixed boxes in Zak and Indy. Bugs may remain.
svn-id: r3727
Diffstat (limited to 'boxes.cpp')
-rw-r--r--boxes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boxes.cpp b/boxes.cpp
index bdb2e77574..a6704a8fc7 100644
--- a/boxes.cpp
+++ b/boxes.cpp
@@ -59,7 +59,7 @@ Box *Scumm::getBoxBaseAddr(int box) {
bool Scumm::checkXYInBoxBounds(int b, int x, int y) {
BoxCoords box;
- if (b==0)
+ if (b==0 && (!(_features & GF_OLD256)))
return 0;
getBoxCoordinates(b, &box);
@@ -326,7 +326,7 @@ int Scumm::getPathToDestBox(byte from, byte to) {
return boxm[2];
boxm+=3;
}
- return 0;
+ return -1;
}
int Scumm::findPathTowards(Actor *a, byte box1nr, byte box2nr, byte box3nr) {