PARALLACTION: Fixed bugs #2880939 and #3135868

A regression from commit 774773b. Many thanks to digitall for bisecting
This commit is contained in:
Filippos Karapetis 2011-10-01 01:08:46 +03:00
parent ea2b8a2ae9
commit 2883ebc40e

View file

@ -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() {