mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
(svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games.
This commit is contained in:
@@ -79,6 +79,8 @@ void MoveBuoysToWaypoints()
|
||||
if (IsBuoyTile(xy) && GetStationIndex(xy) == index) {
|
||||
wp->facilities |= FACIL_DOCK;
|
||||
}
|
||||
|
||||
wp->rect.BeforeAddTile(st->xy, StationRect::ADD_FORCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -109,6 +109,7 @@ void MoveWaypointsToBaseStations()
|
||||
if (wp->spec != NULL) {
|
||||
SetCustomStationSpecIndex(t, AllocateSpecToStation(wp->spec, new_wp, true));
|
||||
}
|
||||
new_wp->rect.BeforeAddTile(t, StationRect::ADD_FORCE);
|
||||
}
|
||||
|
||||
wp->new_index = new_wp->index;
|
||||
|
Reference in New Issue
Block a user