mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-20 10:56:19 +01:00
(svn r20634) -Fix (r20592): gracefully do the date_fract format conversion when an older OpenTTD savegame which loaded an ancient savegame still has the old date_fract "format".
This commit is contained in:
parent
8047d84aa0
commit
8522984840
@ -566,7 +566,7 @@ bool AfterLoadGame()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The value of _date_fract got divided, so make sure that old games are converted correctly. */
|
/* The value of _date_fract got divided, so make sure that old games are converted correctly. */
|
||||||
if (CheckSavegameVersionOldStyle(11, 1)) _date_fract /= 885;
|
if (CheckSavegameVersionOldStyle(11, 1) || (CheckSavegameVersion(147) && _date_fract > DAY_TICKS)) _date_fract /= 885;
|
||||||
|
|
||||||
/* Update current year
|
/* Update current year
|
||||||
* must be done before loading sprites as some newgrfs check it */
|
* must be done before loading sprites as some newgrfs check it */
|
||||||
|
Loading…
Reference in New Issue
Block a user