summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-31 19:04:22 +0000
committerrubidium <rubidium@openttd.org>2009-07-31 19:04:22 +0000
commit0bb3d7030ffdd336acd0131a00b93c6aa1b26419 (patch)
tree689a612579fb6e47237cc9faee13f4887a52e830
parent9f2f4f8364ed7a77b5f1faa98f6076f2f0eeebc4 (diff)
downloadopenttd-0bb3d7030ffdd336acd0131a00b93c6aa1b26419.tar.xz
(svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games.
-rw-r--r--src/saveload/station_sl.cpp2
-rw-r--r--src/saveload/waypoint_sl.cpp1
2 files changed, 3 insertions, 0 deletions
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;