summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/order_sl.cpp23
-rw-r--r--src/saveload/saveload.cpp3
2 files changed, 16 insertions, 10 deletions
diff --git a/src/saveload/order_sl.cpp b/src/saveload/order_sl.cpp
index 4637d4a80..c72d982ad 100644
--- a/src/saveload/order_sl.cpp
+++ b/src/saveload/order_sl.cpp
@@ -244,15 +244,20 @@ static void Ptrs_ORDL()
const SaveLoad *GetOrderBackupDescription()
{
static const SaveLoad _order_backup_desc[] = {
- SLE_VAR(OrderBackup, user, SLE_UINT32),
- SLE_VAR(OrderBackup, tile, SLE_UINT32),
- SLE_VAR(OrderBackup, group, SLE_UINT16),
- SLE_VAR(OrderBackup, service_interval, SLE_INT32),
- SLE_STR(OrderBackup, name, SLE_STR, 0),
- SLE_VAR(OrderBackup, clone, SLE_UINT16),
- SLE_VAR(OrderBackup, cur_real_order_index, SLE_UINT8),
- SLE_REF(OrderBackup, orders, REF_ORDER),
- SLE_END()
+ SLE_VAR(OrderBackup, user, SLE_UINT32),
+ SLE_VAR(OrderBackup, tile, SLE_UINT32),
+ SLE_VAR(OrderBackup, group, SLE_UINT16),
+ SLE_VAR(OrderBackup, service_interval, SLE_INT32),
+ SLE_STR(OrderBackup, name, SLE_STR, 0),
+ SLE_VAR(OrderBackup, clone, SLE_UINT16),
+ SLE_VAR(OrderBackup, cur_real_order_index, SLE_UINT8),
+ SLE_CONDVAR(OrderBackup, cur_implicit_order_index, SLE_UINT8, 176, SL_MAX_VERSION),
+ SLE_CONDVAR(OrderBackup, current_order_time, SLE_UINT32, 176, SL_MAX_VERSION),
+ SLE_CONDVAR(OrderBackup, lateness_counter, SLE_INT32, 176, SL_MAX_VERSION),
+ SLE_CONDVAR(OrderBackup, timetable_start, SLE_INT32, 176, SL_MAX_VERSION),
+ SLE_CONDVAR(OrderBackup, vehicle_flags, SLE_UINT8, 176, SL_MAX_VERSION),
+ SLE_REF(OrderBackup, orders, REF_ORDER),
+ SLE_END()
};
return _order_backup_desc;
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 7cc1da4ed..d49d90a5a 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -239,8 +239,9 @@
* 173 23967 1.2.0-RC1
* 174 23973 1.2.x
* 175 24136
+ * 176 24446
*/
-extern const uint16 SAVEGAME_VERSION = 175; ///< Current savegame version of OpenTTD.
+extern const uint16 SAVEGAME_VERSION = 176; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading