summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-02-21 17:25:17 +0000
committermichi_cc <michi_cc@openttd.org>2012-02-21 17:25:17 +0000
commit5aeae7ca4909b9619d647d27f14f42a2a7bf05cd (patch)
tree6c4b0579a697f73089290ae3db79a8b27ecdaa5a
parent36d7f10911b7f1c634675d7a0a2971e2990626c6 (diff)
downloadopenttd-5aeae7ca4909b9619d647d27f14f42a2a7bf05cd.tar.xz
(svn r23973) -Fix (r23947): Also save the maximum travel speed for the current vehicle order.
-rw-r--r--src/saveload/saveload.cpp5
-rw-r--r--src/saveload/vehicle_sl.cpp1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 22725ca00..b83412335 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -236,9 +236,10 @@
* 170 23826
* 171 23835
* 172 23947
- * 173 23967 1.2.x
+ * 173 23967 1.2.0-RC1
+ * 174 23973 1.2.x
*/
-extern const uint16 SAVEGAME_VERSION = 173; ///< Current savegame version of OpenTTD.
+extern const uint16 SAVEGAME_VERSION = 174; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 6087c347f..416b0f0e9 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -628,6 +628,7 @@ const SaveLoad *GetVehicleDescription(VehicleType vt)
/* Timetable in current order */
SLE_CONDVAR(Vehicle, current_order.wait_time, SLE_UINT16, 67, SL_MAX_VERSION),
SLE_CONDVAR(Vehicle, current_order.travel_time, SLE_UINT16, 67, SL_MAX_VERSION),
+ SLE_CONDVAR(Vehicle, current_order.max_speed, SLE_UINT16, 174, SL_MAX_VERSION),
SLE_CONDVAR(Vehicle, timetable_start, SLE_INT32, 129, SL_MAX_VERSION),
SLE_CONDREF(Vehicle, orders, REF_ORDER, 0, 104),