From 0bb3d7030ffdd336acd0131a00b93c6aa1b26419 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 31 Jul 2009 19:04:22 +0000 Subject: (svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games. --- src/saveload/station_sl.cpp | 2 ++ src/saveload/waypoint_sl.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp index 948779d50..cfc49aeea 100644 --- a/src/saveload/station_sl.cpp +++ b/src/saveload/station_sl.cpp @@ -79,6 +79,8 @@ void MoveBuoysToWaypoints() if (IsBuoyTile(xy) && GetStationIndex(xy) == index) { wp->facilities |= FACIL_DOCK; } + + wp->rect.BeforeAddTile(st->xy, StationRect::ADD_FORCE); } } diff --git a/src/saveload/waypoint_sl.cpp b/src/saveload/waypoint_sl.cpp index 728537258..c424e5739 100644 --- a/src/saveload/waypoint_sl.cpp +++ b/src/saveload/waypoint_sl.cpp @@ -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; -- cgit v1.2.3-70-g09d2