mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 23:34:15 +00:00
(svn r21638) -Codechange (r1): Simplify testing that outersize.x is bigger than 0.
This commit is contained in:
parent
2c41b8ee97
commit
d2564a3e56
@ -1040,8 +1040,7 @@ static void DrawTileSelection(const TileInfo *ti)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check if it's inside the outer area? */
|
/* Check if it's inside the outer area? */
|
||||||
if (!is_redsq && _thd.outersize.x &&
|
if (!is_redsq && _thd.outersize.x > 0 &&
|
||||||
_thd.size.x < _thd.size.x + _thd.outersize.x &&
|
|
||||||
IsInsideBS(ti->x, _thd.pos.x + _thd.offs.x, _thd.size.x + _thd.outersize.x) &&
|
IsInsideBS(ti->x, _thd.pos.x + _thd.offs.x, _thd.size.x + _thd.outersize.x) &&
|
||||||
IsInsideBS(ti->y, _thd.pos.y + _thd.offs.y, _thd.size.y + _thd.outersize.y)) {
|
IsInsideBS(ti->y, _thd.pos.y + _thd.offs.y, _thd.size.y + _thd.outersize.y)) {
|
||||||
/* Draw a blue rect. */
|
/* Draw a blue rect. */
|
||||||
|
Loading…
Reference in New Issue
Block a user