From 993a106679e4e682d9028fe44d1e5f9f1f178506 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 25 Jan 2005 21:43:57 +0000 Subject: (svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change WARNING: If i made any mistake here it WILL lead to corrupted savegames! --- station_cmd.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index e856e7f2e..dd6fa1204 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2810,12 +2810,18 @@ const TileTypeProcs _tile_type_station_procs = { static const byte _station_desc[] = { - SLE_VAR(Station,xy, SLE_UINT16), - SLE_VAR(Station,bus_tile, SLE_UINT16), - SLE_VAR(Station,lorry_tile, SLE_UINT16), - SLE_VAR(Station,train_tile, SLE_UINT16), - SLE_VAR(Station,airport_tile, SLE_UINT16), - SLE_VAR(Station,dock_tile, SLE_UINT16), + SLE_CONDVAR(Station, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Station, xy, SLE_UINT32, 6, 255), + SLE_CONDVAR(Station, bus_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Station, bus_tile, SLE_UINT32, 6, 255), + SLE_CONDVAR(Station, lorry_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Station, lorry_tile, SLE_UINT32, 6, 255), + SLE_CONDVAR(Station, train_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Station, train_tile, SLE_UINT32, 6, 255), + SLE_CONDVAR(Station, airport_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Station, airport_tile, SLE_UINT32, 6, 255), + SLE_CONDVAR(Station, dock_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), + SLE_CONDVAR(Station, dock_tile, SLE_UINT32, 6, 255), SLE_REF(Station,town, REF_TOWN), SLE_VAR(Station,trainst_w, SLE_UINT8), SLE_CONDVAR(Station,trainst_h, SLE_UINT8, 2, 255), -- cgit v1.2.3-54-g00ecf