summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc.c4
-rw-r--r--openttd.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index a17dd7b01..7801a2140 100644
--- a/misc.c
+++ b/misc.c
@@ -268,8 +268,8 @@ static void Load_NAME(void)
}
static const SaveLoadGlobVarList _date_desc[] = {
- SLEG_CONDVAR(_date, SLE_FILE_U16 | SLE_VAR_U32, 0, 30),
- SLEG_CONDVAR(_date, SLE_UINT32, 31, SL_MAX_VERSION),
+ SLEG_CONDVAR(_date, SLE_FILE_U16 | SLE_VAR_I32, 0, 30),
+ SLEG_CONDVAR(_date, SLE_INT32, 31, SL_MAX_VERSION),
SLEG_VAR(_date_fract, SLE_UINT16),
SLEG_VAR(_tick_counter, SLE_UINT16),
SLEG_VAR(_vehicle_id_ctr_day, SLE_UINT16),
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;