From 2883ebc40e3c13488685b21f4f9c37f9cb66059a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 1 Oct 2011 01:08:46 +0300 Subject: PARALLACTION: Fixed bugs #2880939 and #3135868 A regression from commit 774773b. Many thanks to digitall for bisecting --- engines/parallaction/objects.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines') 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() { -- cgit v1.2.3