diff options
author | Max Horn | 2003-05-20 23:05:34 +0000 |
---|---|---|
committer | Max Horn | 2003-05-20 23:05:34 +0000 |
commit | 34eee8b33bb1295f1872b8752d904df68133ad4c (patch) | |
tree | 0d983dc1c018eeae71487b383a2e87d0c12e37a7 /scumm/actor.cpp | |
parent | 4584cb9616ffa78324544c140ef7fc0ad71744a1 (diff) | |
download | scummvm-rg350-34eee8b33bb1295f1872b8752d904df68133ad4c.tar.gz scummvm-rg350-34eee8b33bb1295f1872b8752d904df68133ad4c.tar.bz2 scummvm-rg350-34eee8b33bb1295f1872b8752d904df68133ad4c.zip |
cleanup
svn-id: r7756
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r-- | scumm/actor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index a7c2a04021..a99817ff99 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -625,11 +625,12 @@ AdjustBoxResult Actor::adjustXYToBeInBox(int dstX, int dstY) { bestDist = (uint) 0xFFFF; bestBox = kInvalidBox; - // We iterate (backwards) over all boxes, searching the one closes + // We iterate (backwards) over all boxes, searching the one closest // to the desired coordinates. for (box = numBoxes; box >= firstValidBox; box--) { flags = _vm->getBoxFlags(box); + // Skip over invisible boxes if (flags & kBoxInvisible && !(flags & kBoxPlayerOnly && !isInClass(kObjectClassPlayer))) continue; |