diff options
author | rubidium <rubidium@openttd.org> | 2009-04-25 20:16:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-25 20:16:56 +0000 |
commit | 802d31aab683d1e6baeafd8f53bbe7187b39e69a (patch) | |
tree | c5ab4701130437738a9e223bcf1189a270a322b9 /src/strings.cpp | |
parent | 4ec6456feb28f3530573b1452f714bf0b7d589fd (diff) | |
download | openttd-802d31aab683d1e6baeafd8f53bbe7187b39e69a.tar.xz |
(svn r16144) -Fix (r16129): setting the custom digit grouping separator required to restart OpenTTD to take effect. Now also support non 1 ASCII character custom grouping separators.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 9ba0a6e7c..64db048c4 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -336,10 +336,7 @@ static char *FormatGenericCurrency(char *buff, const CurrencySpec *spec, Money n } const char *separator = _settings_game.locale.digit_group_separator_currency; - if (separator == NULL && _currency->separator != '\0') { - static char sep[] = { _currency->separator, '\0' }; - separator = sep; - } + if (separator == NULL && !StrEmpty(_currency->separator)) separator = _currency->separator; if (separator == NULL) separator = _langpack->digit_group_separator_currency; buff = FormatNumber(buff, number, last, separator); buff = strecpy(buff, multiplier, last); |