aboutsummaryrefslogtreecommitdiff
path: root/saga/scene.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2004-12-29 22:50:19 +0000
committerAndrew Kurushin2004-12-29 22:50:19 +0000
commit8531caf82282305e96769cea1a95aaa15ce5c57a (patch)
tree21d028d57bd6db5cff834c2491e319d4e93dcba0 /saga/scene.cpp
parent5019da43bd0b6dff9c6dad65d1565fa9426db023 (diff)
downloadscummvm-rg350-8531caf82282305e96769cea1a95aaa15ce5c57a.tar.gz
scummvm-rg350-8531caf82282305e96769cea1a95aaa15ce5c57a.tar.bz2
scummvm-rg350-8531caf82282305e96769cea1a95aaa15ce5c57a.zip
- fixed canWalk bug
svn-id: r16378
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r--saga/scene.cpp4
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);