changeset 12566:6596fafae9eb draft

(svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games.
author rubidium <rubidium@openttd.org>
date Fri, 31 Jul 2009 19:04:22 +0000
parents 2c356812d90d
children a2ab2f2e9af8
files src/saveload/station_sl.cpp src/saveload/waypoint_sl.cpp
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -79,6 +79,8 @@
 		if (IsBuoyTile(xy) && GetStationIndex(xy) == index) {
 			wp->facilities |= FACIL_DOCK;
 		}
+
+		wp->rect.BeforeAddTile(st->xy, StationRect::ADD_FORCE);
 	}
 }
 
--- a/src/saveload/waypoint_sl.cpp
+++ b/src/saveload/waypoint_sl.cpp
@@ -109,6 +109,7 @@
 			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;