summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-07 09:06:27 +0100
committerPatric Stout <github@truebrain.nl>2021-01-08 11:17:08 +0100
commitef6b17baf74119e5c1515482cd6feb837afbe90b (patch)
tree66cafe27944426ecf6c73482d752b71c3a958c52 /src/table
parenta1987df96acda0f58f88f2e154e26c529f59670b (diff)
downloadopenttd-ef6b17baf74119e5c1515482cd6feb837afbe90b.tar.xz
Fix 2fd871e2af5: load correct ending-year for old (pre 0.7) savegames
Despite what it looked like, you could never really change the ending-year (it was always reset to 2050 on start-up). See commit 683b65ee1 for details. As a side-effect, the variable that was suppose to store the ending-year was just zero, never containing a real ending-year.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.ini12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini
index 1142bcc5e..573d8e710 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -47,8 +47,6 @@ static bool UpdateServerPassword(int32 p1);
static bool UpdateRconPassword(int32 p1);
static bool UpdateClientConfigValues(int32 p1);
-extern int32 _old_ending_year_slv_105;
-
/* End - Callback Functions for the various settings */
/* Some settings do not need to be synchronised when playing in multiplayer.
@@ -1405,15 +1403,9 @@ str = STR_CONFIG_SETTING_STARTING_YEAR
strval = STR_JUST_INT
cat = SC_BASIC
-[SDTG_VAR]
-name = ""old_ending_year_slv_105""
-var = _old_ending_year_slv_105
-flags = SLF_NOT_IN_CONFIG
-type = SLE_INT32
+[SDT_NULL]
+length = 4
to = SLV_105
-def = DEF_END_YEAR
-min = MIN_YEAR
-max = MAX_YEAR
[SDT_VAR]
base = GameSettings