From a951c505bff54ea4365895126e72a89a09f9fe2d Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 25 Nov 2009 23:37:15 +0000 Subject: (svn r18292) -Codechange: add a command to set the start date of a timetable. Based on work by PhilSophus. --- src/saveload/saveload.cpp | 2 +- src/saveload/vehicle_sl.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/saveload') 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), -- cgit v1.2.3-70-g09d2