diff options
author | rubidium <rubidium@openttd.org> | 2009-07-30 17:44:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-30 17:44:13 +0000 |
commit | 5592eb49556630e7277cabb68c9d7a185eebd7f6 (patch) | |
tree | c9bb9482ae91f9c80145c41001fec505fe812a7c /src/saveload/station_sl.cpp | |
parent | 4a1f6547c678331f5e16b0c06c1e84eaa7d50db9 (diff) | |
download | openttd-5592eb49556630e7277cabb68c9d7a185eebd7f6.tar.xz |
(svn r16993) -Change: make the rail waypoint builder draggable
Diffstat (limited to 'src/saveload/station_sl.cpp')
-rw-r--r-- | src/saveload/station_sl.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp index d8df2e734..948779d50 100644 --- a/src/saveload/station_sl.cpp +++ b/src/saveload/station_sl.cpp @@ -95,11 +95,6 @@ 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); @@ -332,6 +327,10 @@ static const SaveLoad _waypoint_desc[] = { SLE_VAR(Waypoint, town_cn, SLE_UINT16), + SLE_CONDVAR(Waypoint, train_station.tile, SLE_UINT32, 124, SL_MAX_VERSION), + SLE_CONDVAR(Waypoint, train_station.w, SLE_UINT8, 124, SL_MAX_VERSION), + SLE_CONDVAR(Waypoint, train_station.h, SLE_UINT8, 124, SL_MAX_VERSION), + SLE_END() }; |