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

@@ -207,7 +207,7 @@ RoadStop *Station::GetPrimaryRoadStop(const RoadVehicle *v) const
void Station::AddFacility(StationFacility new_facility_bit, TileIndex facil_xy)
{
if (this->facilities == FACIL_NONE) {
this->xy = facil_xy;
this->MoveSign(facil_xy);
this->random_bits = Random();
}
this->facilities |= new_facility_bit;