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/newgrf.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/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 21c39d2dd..6ed173463 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1717,7 +1717,8 @@ static ChangeInfoResult GlobalVarChangeInfo(uint gvid, int numinfo, int prop, by uint16 options = grf_load_word(&buf); if (curidx < NUM_CURRENCY) { - _currency_specs[curidx].separator = GB(options, 0, 8); + _currency_specs[curidx].separator[0] = GB(options, 0, 8); + _currency_specs[curidx].separator[1] = '\0'; /* By specifying only one bit, we prevent errors, * since newgrf specs said that only 0 and 1 can be set for symbol_pos */ _currency_specs[curidx].symbol_pos = GB(options, 8, 1); |