aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-01 01:08:46 +0300
committerFilippos Karapetis2011-10-01 01:10:30 +0300
commit2883ebc40e3c13488685b21f4f9c37f9cb66059a (patch)
tree59469594e3192c359e06ad40464572d28e7254b6 /engines
parentea2b8a2ae9589aca4b912d293eab685e5fbf9277 (diff)
downloadscummvm-rg350-2883ebc40e3c13488685b21f4f9c37f9cb66059a.tar.gz
scummvm-rg350-2883ebc40e3c13488685b21f4f9c37f9cb66059a.tar.bz2
scummvm-rg350-2883ebc40e3c13488685b21f4f9c37f9cb66059a.zip
PARALLACTION: Fixed bugs #2880939 and #3135868
A regression from commit 774773b. Many thanks to digitall for bisecting
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() {