diff options
author | Andrew Kurushin | 2004-12-29 22:50:19 +0000 |
---|---|---|
committer | Andrew Kurushin | 2004-12-29 22:50:19 +0000 |
commit | 8531caf82282305e96769cea1a95aaa15ce5c57a (patch) | |
tree | 21d028d57bd6db5cff834c2491e319d4e93dcba0 | |
parent | 5019da43bd0b6dff9c6dad65d1565fa9426db023 (diff) | |
download | scummvm-rg350-8531caf82282305e96769cea1a95aaa15ce5c57a.tar.gz scummvm-rg350-8531caf82282305e96769cea1a95aaa15ce5c57a.tar.bz2 scummvm-rg350-8531caf82282305e96769cea1a95aaa15ce5c57a.zip |
- fixed canWalk bug
svn-id: r16378
-rw-r--r-- | saga/scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index d9171871ae..25a64b46da 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -377,8 +377,8 @@ bool Scene::canWalk(const Point &testPoint) { if (!_bgMask.loaded) { return true; } - if ((testPoint.x < 0) || (testPoint.x > _bgMask.w) || - (testPoint.y < 0) || (testPoint.y > _bgMask.h)) { + if ((testPoint.x < 0) || (testPoint.x >= _bgMask.w) || + (testPoint.y < 0) || (testPoint.y >= _bgMask.h)) { return true; } maskType = getBGMaskType(testPoint); |