Causes regression, see #12841.
This commit is contained in:
Pavel Sanda 2023-07-27 22:39:49 +02:00
parent 8424213ae4
commit 9c7030b36b

View File

@ -31,8 +31,10 @@ struct Geometry {
bool covers(int x, int y) const
{
return x >= pos.x_ && x < pos.x_ + dim.wid
&& y >= pos.y_ - dim.asc && y <= pos.y_ + dim.des;
return x >= pos.x_
&& x <= pos.x_ + dim.wid
&& y >= pos.y_ - dim.asc
&& y <= pos.y_ + dim.des;
}
int squareDistance(int x, int y) const