aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-01-10 22:55:37 +0100
committerStrangerke2016-01-10 22:55:37 +0100
commit6d2dca8cdd3eb8c847aac5e2ee5d050c1de741a6 (patch)
tree7643b64d219bcef4eacfaf72d3b6226401511e1d
parentf146ef065dfb289f445b02cef123ab330f2ff84e (diff)
downloadscummvm-rg350-6d2dca8cdd3eb8c847aac5e2ee5d050c1de741a6.tar.gz
scummvm-rg350-6d2dca8cdd3eb8c847aac5e2ee5d050c1de741a6.tar.bz2
scummvm-rg350-6d2dca8cdd3eb8c847aac5e2ee5d050c1de741a6.zip
MADS: Fix a bug noticed by eriktorbjorn in the camera code
-rw-r--r--engines/mads/camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/camera.cpp b/engines/mads/camera.cpp
index a727042551..c9b2f1429e 100644
--- a/engines/mads/camera.cpp
+++ b/engines/mads/camera.cpp
@@ -133,7 +133,7 @@ bool Camera::camPan(int16 *picture_view, int16 *player_loc, int display_size, in
int lowEdge = *picture_view + _startTolerance;
int highEdge = *picture_view - _startTolerance + display_size - 1;
- if ((*player_loc < lowEdge) && (picture_view > 0)) {
+ if ((*player_loc < lowEdge) && (*picture_view > 0)) {
_activeFl = true;
_direction = -1;
}