mirror of https://github.com/OpenTTD/OpenTTD
(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".
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. */
|
||||
if (CheckSavegameVersionOldStyle(11, 1)) _date_fract /= 885;
|
||||
if (CheckSavegameVersionOldStyle(11, 1) || (CheckSavegameVersion(147) && _date_fract > DAY_TICKS)) _date_fract /= 885;
|
||||
|
||||
/* Update current year
|
||||
* must be done before loading sprites as some newgrfs check it */
|
||||
|
|
Loading…
Reference in New Issue