aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/objects.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp
index 22406013a1..fe21732f03 100644
--- a/engines/parallaction/objects.cpp
+++ b/engines/parallaction/objects.cpp
@@ -220,7 +220,11 @@ bool Zone::hitRect(int x, int y) const {
if (_right < _left || _bottom < _top) {
return false;
}
- return Common::Rect(_left, _top, _right, _bottom).contains(x, y);
+
+ Common::Rect r(_left, _top, _right + 1, _bottom + 1);
+ r.grow(-1);
+
+ return r.contains(x, y);
}
Dialogue::Dialogue() {