summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 3fcc45125..be0118aad 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1040,8 +1040,7 @@ static void DrawTileSelection(const TileInfo *ti)
}
/* Check if it's inside the outer area? */
- if (!is_redsq && _thd.outersize.x &&
- _thd.size.x < _thd.size.x + _thd.outersize.x &&
+ if (!is_redsq && _thd.outersize.x > 0 &&
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)) {
/* Draw a blue rect. */