diff options
author | rubidium <rubidium@openttd.org> | 2010-08-22 09:21:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-22 09:21:56 +0000 |
commit | 29e02728e112d579256dc414bdef5be0325e1a25 (patch) | |
tree | 675c5dda67e7c183ce8f53fdfd6c1a90c0016efc /src/saveload | |
parent | 56a263070f3afb6dfea3bdc5113874f8db66b23a (diff) | |
download | openttd-29e02728e112d579256dc414bdef5be0325e1a25.tar.xz |
(svn r20592) -Fix (r2041): no (proper) savegame conversion was done when _date_fract got a new value range
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index bce5e0451..17b356aae 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -569,6 +569,9 @@ bool AfterLoadGame() default: break; } + /* The value of _date_fract got divided, so make sure that old games are converted correctly. */ + if (CheckSavegameVersionOldStyle(11, 1)) _date_fract /= 885; + /* Update current year * must be done before loading sprites as some newgrfs check it */ SetDate(_date, _date_fract); |