summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-01-29 22:40:51 +0000
committerDarkvater <darkvater@openttd.org>2006-01-29 22:40:51 +0000
commite6d16d17dc79d63b8ecb33bec0746cdd69287f36 (patch)
tree9ab9ce9820e7960a44f024867241427db01f08cd /vehicle.c
parentf3b0de85bf4b7a2c0a09c29faf8b2beb94c5b146 (diff)
downloadopenttd-e6d16d17dc79d63b8ecb33bec0746cdd69287f36.tar.xz
(svn r3482) - Fix: since multiheaded links are not saved anymore do NOT save them anymore at all, return the extra space. Since Bjarni's fix for this was abominable, the weird situation arises of 2 NULL structs of free space, of which the first isn't usable.
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/vehicle.c b/vehicle.c
index 198c8b140..c139387c2 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2122,12 +2122,9 @@ static const SaveLoad _train_desc[] = {
SLE_CONDVARX(offsetof(Vehicle,u)+offsetof(VehicleRail,flags), SLE_UINT8, 2, 255),
SLE_CONDVARX(offsetof(Vehicle,u)+offsetof(VehicleRail,days_since_order_progr), SLE_UINT16, 2, 255),
- // reserve extra space in savegame here. (currently 8 bytes)
- SLE_CONDARR(NullStruct, null, SLE_FILE_U8 | SLE_VAR_NULL, 8, 2, 255),
-
- SLE_CONDREFX(offsetof(Vehicle,u)+offsetof(VehicleRail,other_multiheaded_part), REF_VEHICLE, 2, 19), // added with 17.1, but was blank since 2. Removed in 20
- // reserve extra space in savegame here. (currently 3 bytes)
- SLE_CONDARR(NullStruct,null,SLE_FILE_U8 | SLE_VAR_NULL, 3, 2, 255),
+ SLE_CONDARR(NullStruct, null, SLE_FILE_U8 | SLE_VAR_NULL, 2, 2, 19),
+ // reserve extra space in savegame here. (currently 11 bytes)
+ SLE_CONDARR(NullStruct, null, SLE_FILE_U8 | SLE_VAR_NULL, 11, 2, 255),
SLE_END()
};