summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-09-03 12:11:31 +0000
committeryexo <yexo@openttd.org>2009-09-03 12:11:31 +0000
commit16e3083ff724c93012b821319fc80d311eeacc55 (patch)
tree49adfe50132aaf481bf631fbbfdb51aaefc5042d /src/saveload
parentdcf3719ca1de0a3645ded7d893396e866ab97cba (diff)
downloadopenttd-16e3083ff724c93012b821319fc80d311eeacc55.tar.xz
(svn r17405) -Fix (r100): aircraft shouldn't be allowed to make turns bigger then 45 degrees while in flight
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/vehicle_sl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index fa2828596..81260ca62 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -591,9 +591,10 @@ const SaveLoad *GetVehicleDescription(VehicleType vt)
SLE_VAR(Aircraft, state, SLE_UINT8),
SLE_CONDVAR(Aircraft, previous_pos, SLE_UINT8, 2, SL_MAX_VERSION),
+ SLE_CONDVAR(Aircraft, last_direction, SLE_UINT8, 2, SL_MAX_VERSION),
- /* reserve extra space in savegame here. (currently 15 bytes) */
- SLE_CONDNULL(15, 2, SL_MAX_VERSION),
+ /* reserve extra space in savegame here. (currently 14 bytes) */
+ SLE_CONDNULL(14, 2, SL_MAX_VERSION),
SLE_END()
};