A regression from commit 774773b
. Many thanks to digitall for bisecting
This commit is contained in:
parent
ea2b8a2ae9
commit
2883ebc40e
1 changed files with 5 additions and 1 deletions
|
@ -220,7 +220,11 @@ bool Zone::hitRect(int x, int y) const {
|
||||||
if (_right < _left || _bottom < _top) {
|
if (_right < _left || _bottom < _top) {
|
||||||
return false;
|
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() {
|
Dialogue::Dialogue() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue