From be737b80d35aebf98a7fb571b1124cd51b371953 Mon Sep 17 00:00:00 2001 From: truelight Date: Sat, 26 Aug 2006 11:06:54 +0000 Subject: (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 --- openttd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openttd.c') 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; -- cgit v1.2.3-70-g09d2