diff options
author | tron <tron@openttd.org> | 2005-08-07 12:41:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-07 12:41:57 +0000 |
commit | 14e80ca15968476fffdbc64c5dc5edae9145c0d8 (patch) | |
tree | 48e4b97d4e158c2a7f487423c480569db2b96b82 /settings.c | |
parent | 59da8350c137a14dfbd194128a37591634247e46 (diff) | |
download | openttd-14e80ca15968476fffdbc64c5dc5edae9145c0d8.tar.xz |
(svn r2830) Move CheckSwitchToEuro() to currency.[ch] and hide the truth about the custom currency behind a #define
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/settings.c b/settings.c index 37f8872d5..7f9575c8d 100644 --- a/settings.c +++ b/settings.c @@ -990,12 +990,12 @@ const SettingDesc patch_settings[] = { }; static const SettingDesc currency_settings[] = { - {"rate", SDT_UINT16, (void*)1, &_currency_specs[23].rate, NULL}, - {"separator", SDT_STRINGQUOT | (2) << 16, ".", &_currency_specs[23].separator, NULL}, - {"to_euro", SDT_UINT16, (void*)0, &_currency_specs[23].to_euro, NULL}, - {"prefix", SDT_STRINGQUOT | (16) << 16, NULL, &_currency_specs[23].prefix, NULL}, - {"suffix", SDT_STRINGQUOT | (16) << 16, " credits", &_currency_specs[23].suffix, NULL}, - {NULL, 0, NULL, NULL, NULL} + { "rate", SDT_UINT16, (void*)1, &_custom_currency.rate, NULL }, + { "separator", SDT_STRINGQUOT | (2) << 16, ".", &_custom_currency.separator, NULL }, + { "to_euro", SDT_UINT16, (void*)0, &_custom_currency.to_euro, NULL }, + { "prefix", SDT_STRINGQUOT | (16) << 16, NULL, &_custom_currency.prefix, NULL }, + { "suffix", SDT_STRINGQUOT | (16) << 16, " credits", &_custom_currency.suffix, NULL }, + { NULL, 0, NULL, NULL, NULL } }; typedef void SettingDescProc(IniFile *ini, const SettingDesc *desc, const void *grpname); |