From 47ddf59fa5b3bdc00b92fe4f28934ef3f809af68 Mon Sep 17 00:00:00 2001 From: dP Date: Wed, 27 Jan 2021 19:23:38 +0300 Subject: [PATCH] Fix polyrail building highlight --- src/citymania/cm_highlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/citymania/cm_highlight.cpp b/src/citymania/cm_highlight.cpp index b6ecdd5f52..c7fd173062 100644 --- a/src/citymania/cm_highlight.cpp +++ b/src/citymania/cm_highlight.cpp @@ -917,7 +917,7 @@ HighLightStyle UpdateTileSelection(HighLightStyle new_drawstyle) { _thd.cm_new = ObjectHighlight::make_rail_depot(tile, dir); } new_drawstyle = HT_RECT; - } else if (_thd.outersize.x > 0) { // station + } else if (((_thd.place_mode & HT_DRAG_MASK) == HT_RECT || ((_thd.place_mode & HT_DRAG_MASK) == HT_SPECIAL && (_thd.next_drawstyle & HT_DRAG_MASK) == HT_RECT)) && _thd.outersize.x > 0) { // station if (_thd.size.x >= (int)TILE_SIZE && _thd.size.y >= (int)TILE_SIZE) { auto start_tile = TileXY(_thd.pos.x / TILE_SIZE, _thd.pos.y / TILE_SIZE); auto end_tile = TileXY(