mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r6136) -Fix: _cur_year wasn't converting when reading pre-31 savegames, causing nasty desyncs
-Fix: _date, which is a Date, which is int32, was saved as uint32
This commit is contained in:
parent
de56b3c57d
commit
be737b80d3
4
misc.c
4
misc.c
|
@ -268,8 +268,8 @@ static void Load_NAME(void)
|
|||
}
|
||||
|
||||
static const SaveLoadGlobVarList _date_desc[] = {
|
||||
SLEG_CONDVAR(_date, SLE_FILE_U16 | SLE_VAR_U32, 0, 30),
|
||||
SLEG_CONDVAR(_date, SLE_UINT32, 31, SL_MAX_VERSION),
|
||||
SLEG_CONDVAR(_date, SLE_FILE_U16 | SLE_VAR_I32, 0, 30),
|
||||
SLEG_CONDVAR(_date, SLE_INT32, 31, SL_MAX_VERSION),
|
||||
SLEG_VAR(_date_fract, SLE_UINT16),
|
||||
SLEG_VAR(_tick_counter, SLE_UINT16),
|
||||
SLEG_VAR(_vehicle_id_ctr_day, SLE_UINT16),
|
||||
|
|
Loading…
Reference in New Issue