1
0
Fork 0

(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".

release/1.1
rubidium 2010-08-27 10:50:21 +00:00
parent 8047d84aa0
commit 8522984840
1 changed files with 1 additions and 1 deletions

View File

@ -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 */