summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-25 20:16:56 +0000
committerrubidium <rubidium@openttd.org>2009-04-25 20:16:56 +0000
commit802d31aab683d1e6baeafd8f53bbe7187b39e69a (patch)
treec5ab4701130437738a9e223bcf1189a270a322b9 /src/newgrf.cpp
parent4ec6456feb28f3530573b1452f714bf0b7d589fd (diff)
downloadopenttd-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.cpp3
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);