summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-15 13:31:51 +0200
committerPatric Stout <github@truebrain.nl>2021-07-02 22:21:58 +0200
commit1ed240590799d0a2b724b226a512906908057e79 (patch)
treea2bfe9f6faa4e83e025633b11a2ae49ade6d686e /src/table
parent3826703bc3807c8af7372b550760fcd8286b9a6c (diff)
downloadopenttd-1ed240590799d0a2b724b226a512906908057e79.tar.xz
Cleanup: remove SLE_NULL and friends
We no longer need them. If you want to remove a field .. just remove it! Because of the headers in the savegame, on loading, it will do the right thing and skip the field. Do remember to bump the savegame version, as otherwise older clients can still load the game, but will reset the field you have removed .. that might be unintentially.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.h.preamble10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/table/settings.h.preamble b/src/table/settings.h.preamble
index 9641c24ce..032714baf 100644
--- a/src/table/settings.h.preamble
+++ b/src/table/settings.h.preamble
@@ -43,9 +43,7 @@ static size_t ConvertLandscape(const char *value);
* These are actually normal numbers, only bitmasked. In MMANY several bits can
* be set, in the other only one.
* If nothing fits you, you can use the GENERAL macros, but it exposes the
- * internal structure somewhat so it needs a little looking. There are _NULL()
- * macros as well, these fill up space so you can add more settings there (in
- * place) and you DON'T have to increase the savegame version.
+ * internal structure somewhat so it needs a little looking.
*
* While reading values from openttd.cfg, some values may not be converted
* properly, for any kind of reasons. In order to allow a process of self-cleaning
@@ -76,9 +74,6 @@ static size_t ConvertLandscape(const char *value);
#define SDTG_MMANY(name, type, flags, var, def, full, str, strhelp, strval, pre_check, post_callback, from, to, cat, extra, startup)\
NSD(ManyOfMany, SLEG_GENERAL(#var, SL_VAR, var, type, 1, from, to, extra), name, flags, startup, def, str, strhelp, strval, cat, pre_check, post_callback, full, nullptr)
-#define SDTG_NULL(length, from, to)\
- NSD(Null, SLEG_NULL(length, from, to))
-
/* Macros for various objects to go in the configuration file.
* This section is for structures where their various members are saved */
#define SDT_VAR(base, var, type, flags, def, min, max, interval, str, strhelp, strval, pre_check, post_callback, from, to, cat, extra, startup)\
@@ -99,9 +94,6 @@ static size_t ConvertLandscape(const char *value);
#define SDT_MMANY(base, var, type, flags, def, full, str, pre_check, post_callback, strhelp, strval, from, to, cat, extra, startup)\
NSD(ManyOfMany, SLE_GENERAL(SL_VAR, base, var, type, 1, from, to, extra), #var, flags, startup, def, str, strhelp, strval, cat, pre_check, post_callback, full, nullptr)
-#define SDT_NULL(length, from, to)\
- NSD(Null, SLE_CONDNULL(length, from, to))
-
#define SDTC_VAR(var, type, flags, def, min, max, interval, str, strhelp, strval, pre_check, post_callback, from, to, cat, extra, startup)\
SDTG_VAR(#var, type, flags, _settings_client.var, def, min, max, interval, str, strhelp, strval, pre_check, post_callback, from, to, cat, extra, startup)