diff options
author | tron <tron@openttd.org> | 2007-01-31 06:25:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-01-31 06:25:46 +0000 |
commit | fe1691acce220f6d55a7bcad077020cfbec4bfb5 (patch) | |
tree | 0bec7750e40db1990ca2913e337fdb46579835f2 /src/oldloader.cpp | |
parent | 6e20c73c336b057e3eb95baf9cb7c3504aec2597 (diff) | |
download | openttd-fe1691acce220f6d55a7bcad077020cfbec4bfb5.tar.xz |
(svn r8477) -Fix
-Codechange: Remove the unnecessary attributes Station::{bus,lorry}_tile_obsolete by replacing them with a scan of the map for existing road stops when loading old savegames
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 0c9bf6d3b..2c9d045f2 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -312,10 +312,6 @@ static void FixOldStations(void) if (st->train_tile != 0 && GetRailStationAxis(st->train_tile) != AXIS_X) { Swap(st->trainst_w, st->trainst_h); } - - /* Check if there is a bus or truck station, and convert to new format */ - if (st->bus_tile_obsolete != 0) st->bus_stops = new RoadStop(st->bus_tile_obsolete); - if (st->lorry_tile_obsolete != 0) st->truck_stops = new RoadStop(st->lorry_tile_obsolete); } } @@ -578,8 +574,7 @@ static const OldChunks station_chunk[] = { OCL_SVAR( OC_TILE, Station, xy ), OCL_VAR ( OC_UINT32, 1, &_old_town_index ), - OCL_SVAR( OC_TILE, Station, bus_tile_obsolete ), - OCL_SVAR( OC_TILE, Station, lorry_tile_obsolete ), + OCL_NULL( 4 ), // bus/lorry tile OCL_SVAR( OC_TILE, Station, train_tile ), OCL_SVAR( OC_TILE, Station, airport_tile ), OCL_SVAR( OC_TILE, Station, dock_tile ), |