summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-25 23:37:15 +0000
committerrubidium <rubidium@openttd.org>2009-11-25 23:37:15 +0000
commita951c505bff54ea4365895126e72a89a09f9fe2d (patch)
tree83190acad7d9bc95b22708cde9bd2c45945baffd /src/saveload
parent1a8c203d6ec29cf200b37fd995e865821c8ce888 (diff)
downloadopenttd-a951c505bff54ea4365895126e72a89a09f9fe2d.tar.xz
(svn r18292) -Codechange: add a command to set the start date of a timetable. Based on work by PhilSophus.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp2
-rw-r--r--src/saveload/vehicle_sl.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index cbf24248b..90be4172e 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -47,7 +47,7 @@
#include "saveload_internal.h"
-extern const uint16 SAVEGAME_VERSION = 128;
+extern const uint16 SAVEGAME_VERSION = 129;
SavegameType _savegame_type; ///< type of savegame we are loading
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 0e1023909..e08e533fc 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -473,6 +473,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, timetable_start, SLE_INT32, 129, SL_MAX_VERSION),
SLE_CONDREF(Vehicle, orders, REF_ORDER, 0, 104),
SLE_CONDREF(Vehicle, orders, REF_ORDERLIST, 105, SL_MAX_VERSION),