summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-29 22:09:05 +0000
committerrubidium <rubidium@openttd.org>2009-07-29 22:09:05 +0000
commit959a5e690bb1ca14c4bbc9cc60cdf27700f261f5 (patch)
tree43c770435e83126ab39539cdd2fc3cca129d2df2 /src/saveload
parente6480d823a456cc239cd93a16a4020cc8b9895c5 (diff)
downloadopenttd-959a5e690bb1ca14c4bbc9cc60cdf27700f261f5.tar.xz
(svn r16988) -Codechange: unify the code for removing (parts of) stations and waypoints
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/station_sl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index 72c8f9aae..d8df2e734 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -95,6 +95,11 @@ void AfterLoadStations()
if (Station::IsExpected(st)) {
for (CargoID c = 0; c < NUM_CARGO; c++) Station::From(st)->goods[c].cargo.InvalidateCache();
+ } else if (st->facilities & FACIL_TRAIN) {
+ /* Temporary fill this variable with correct data. */
+ st->train_station.tile = st->xy;
+ st->train_station.w = 1;
+ st->train_station.h = 1;
}
StationUpdateAnimTriggers(st);