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