From 802d31aab683d1e6baeafd8f53bbe7187b39e69a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Apr 2009 20:16:56 +0000 Subject: (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. --- src/newgrf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newgrf.cpp') 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); -- cgit v1.2.3-54-g00ecf