summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-28 16:46:24 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commit65cbde4b30f8fdf6d4cf1196f6a596a5550c9aee (patch)
tree180f29871d8401d18dce5ae92f196832b34fe0bc /src/table
parent2022e3482417eceeb1045d01c2aa64db42f03f08 (diff)
downloadopenttd-65cbde4b30f8fdf6d4cf1196f6a596a5550c9aee.tar.xz
Codechange: move currency settings to std::string
Diffstat (limited to 'src/table')
-rw-r--r--src/table/currency_settings.ini18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/table/currency_settings.ini b/src/table/currency_settings.ini
index 3e51d0240..d2f12473e 100644
--- a/src/table/currency_settings.ini
+++ b/src/table/currency_settings.ini
@@ -9,9 +9,9 @@ static const SettingDesc _currency_settings[] = {
[post-amble]
};
[templates]
-SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
-SDT_STR = SDT_STR($base, $var, $type, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
-SDT_END = SDT_END()
+SDT_VAR = SDT_VAR ($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
+SDT_SSTR = SDT_SSTR($base, $var, $type, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
+SDT_END = SDT_END()
[validation]
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size");
@@ -41,10 +41,10 @@ def = 1
min = 0
max = UINT16_MAX
-[SDT_STR]
+[SDT_SSTR]
base = CurrencySpec
var = separator
-type = SLE_STRBQ
+type = SLE_STRQ
def = "".""
cat = SC_BASIC
@@ -56,16 +56,16 @@ def = 0
min = MIN_YEAR
max = MAX_YEAR
-[SDT_STR]
+[SDT_SSTR]
base = CurrencySpec
var = prefix
-type = SLE_STRBQ
+type = SLE_STRQ
def = nullptr
-[SDT_STR]
+[SDT_SSTR]
base = CurrencySpec
var = suffix
-type = SLE_STRBQ
+type = SLE_STRQ
def = "" credits""
[SDT_END]