aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-12-21 22:28:25 +0100
committerStrangerke2014-12-21 22:43:12 +0100
commit24f0cce9c6b0da33d1558059c6fbdb966eb5fb4e (patch)
tree353222ca3038b84fc72f96be916552ca2fc0540c
parente5ecd500cfbf1c91da31dab0a5a71ff43ed82033 (diff)
downloadscummvm-rg350-24f0cce9c6b0da33d1558059c6fbdb966eb5fb4e.tar.gz
scummvm-rg350-24f0cce9c6b0da33d1558059c6fbdb966eb5fb4e.tar.bz2
scummvm-rg350-24f0cce9c6b0da33d1558059c6fbdb966eb5fb4e.zip
ACCESS: Fix bug in setHorizontalCode()
-rw-r--r--engines/access/amazon/amazon_logic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/access/amazon/amazon_logic.cpp b/engines/access/amazon/amazon_logic.cpp
index e6a96b67d6..4a313e8880 100644
--- a/engines/access/amazon/amazon_logic.cpp
+++ b/engines/access/amazon/amazon_logic.cpp
@@ -1035,7 +1035,7 @@ void Guard::setHorizontalCode() {
if (_bottomRight.x < screen._orgX1)
_gCode2 |= 8;
- else if (_bottomRight.y > screen._orgX2)
+ else if (_bottomRight.x > screen._orgX2)
_gCode2 |= 2;
}