Fix #7374: Ensure k-d trees are always updated when station sign moves

This commit is contained in:
Niels Martin Hansen
2019-03-23 12:39:13 +01:00
parent 3860a2ce2a
commit ce10d9be3f
4 changed files with 27 additions and 9 deletions

View File

@@ -110,6 +110,12 @@ struct BaseStation : StationPool::PoolItem<&_station_pool> {
*/
virtual void UpdateVirtCoord() = 0;
virtual void MoveSign(TileIndex new_xy)
{
this->xy = new_xy;
this->UpdateVirtCoord();
}
/**
* Get the tile area for a given station type.
* @param ta tile area to fill.