summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-26 11:06:54 +0000
committertruelight <truelight@openttd.org>2006-08-26 11:06:54 +0000
commitbd775a243d20362a6d188f902e25a451e34fcd9b (patch)
tree41adb3e3e7587a0807fb23b15b07928a3c27989a /openttd.c
parente1b69c4654b1dd52e123a73fe0f292fe814690eb (diff)
downloadopenttd-bd775a243d20362a6d188f902e25a451e34fcd9b.tar.xz
(svn r6136) -Fix: _cur_year wasn't converting when reading pre-31 savegames, causing nasty desyncs
-Fix: _date, which is a Date, which is int32, was saved as uint32
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 12552f152..21965f4c9 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1454,6 +1454,7 @@ bool AfterLoadGame(void)
Vehicle *v;
_date += DAYS_TILL_ORIGINAL_BASE_YEAR;
+ _cur_year += ORIGINAL_BASE_YEAR;
FOR_ALL_STATIONS(st) st->build_date += DAYS_TILL_ORIGINAL_BASE_YEAR;
FOR_ALL_WAYPOINTS(wp) wp->build_date += DAYS_TILL_ORIGINAL_BASE_YEAR;