diff options
author | Vincent Hamm | 2002-03-11 08:34:12 +0000 |
---|---|---|
committer | Vincent Hamm | 2002-03-11 08:34:12 +0000 |
commit | 74694139df8670880248e7f6765a1749fdbf3d95 (patch) | |
tree | a35cfbf58912df1d6b1bc50b8a6033a595d4becf /boxes.cpp | |
parent | e776c275112468897d1eece443be82f9dfe63b67 (diff) | |
download | scummvm-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |