summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp3
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);