Redraw connecting link graph overlay links when moving station sign

Add test console command
This commit is contained in:
Jonathan G Rennison
2020-09-18 18:58:16 +01:00
parent a0f78a8071
commit 3b49f892fa
6 changed files with 104 additions and 2 deletions

View File

@@ -433,11 +433,15 @@ void Station::MoveSign(TileIndex new_xy)
{
if (this->xy == new_xy) return;
MarkAllViewportOverlayStationLinksDirty(this);
_station_kdtree.Remove(this->index);
this->BaseStation::MoveSign(new_xy);
_station_kdtree.Insert(this->index);
MarkAllViewportOverlayStationLinksDirty(this);
}
/** Update the virtual coords needed to draw the station sign for all stations. */