diff options
author | truelight <truelight@openttd.org> | 2006-08-26 11:06:54 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-26 11:06:54 +0000 |
commit | be737b80d35aebf98a7fb571b1124cd51b371953 (patch) | |
tree | 41adb3e3e7587a0807fb23b15b07928a3c27989a /openttd.c | |
parent | de56b3c57dc0a40bea52e8499de6cf7efbdb09e6 (diff) | |
download | openttd-be737b80d35aebf98a7fb571b1124cd51b371953.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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |