summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-09-18 20:18:45 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-12-28 12:27:39 +0100
commit2fd871e2af5cb9e239628843fbd40499ee43406a (patch)
tree25973b79c47ddece4a820807f1fb4694bd85b51b /src/table
parent69f9529ba32df396c4353b2d1c752a3f6609069a (diff)
downloadopenttd-2fd871e2af5cb9e239628843fbd40499ee43406a.tar.xz
Feature: Configurable game ending year
Functionally reverts 683b65ee1
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.ini27
1 files changed, 25 insertions, 2 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini
index 4c3d6ce0d..3e07fcc59 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -47,6 +47,8 @@ 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.
@@ -1402,9 +1404,30 @@ str = STR_CONFIG_SETTING_STARTING_YEAR
strval = STR_JUST_INT
cat = SC_BASIC
-[SDT_NULL]
-length = 4
+[SDTG_VAR]
+name = ""old_ending_year_slv_105""
+var = _old_ending_year_slv_105
+flags = SLF_NOT_IN_CONFIG
+type = SLE_INT32
to = SLV_105
+def = DEF_END_YEAR
+min = MIN_YEAR
+max = MAX_YEAR
+
+[SDT_VAR]
+base = GameSettings
+var = game_creation.ending_year
+type = SLE_INT32
+from = SLV_ENDING_YEAR
+guiflags = SGF_0ISDISABLED
+def = DEF_END_YEAR
+min = MIN_YEAR
+max = MAX_YEAR
+interval = 1
+str = STR_CONFIG_SETTING_ENDING_YEAR
+strhelp = STR_CONFIG_SETTING_ENDING_YEAR_HELPTEXT
+strval = STR_CONFIG_SETTING_ENDING_YEAR_VALUE
+cat = SC_ADVANCED
[SDT_BOOL]
base = GameSettings