diff options
author | tron <tron@openttd.org> | 2005-09-27 20:55:42 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-27 20:55:42 +0000 |
commit | 6249dd46ad3b1b23ae959f57a0def00cf98dd8ee (patch) | |
tree | 9531eb35ea928a52105ec058a27e4be704633242 /strings.c | |
parent | 5f3bb18eb70826d1e35351112b50a5bbce3af799 (diff) | |
download | openttd-6249dd46ad3b1b23ae959f57a0def00cf98dd8ee.tar.xz |
(svn r2994) Another small hack regarding currencies: add a #define to emulate a variable, that holds the current currency; again this should increase readability
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -526,7 +526,7 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c case 0x85: switch (*str++) { case 0: /* {CURRCOMPACT} */ - buff = FormatGenericCurrency(buff, &_currency_specs[_opt_ptr->currency], GetInt32(&argv), true); + buff = FormatGenericCurrency(buff, _currency, GetInt32(&argv), true); break; case 2: /* {REV} */ buff = strecpy(buff, _openttd_revision, NULL); @@ -544,7 +544,7 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c } break; case 4: {/* {CURRCOMPACT64} */ // 64 bit compact currency-unit - buff = FormatGenericCurrency(buff, &_currency_specs[_opt_ptr->currency], GetInt64(&argv), true); + buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), true); break; } case 5: { /* {STRING1} */ @@ -684,7 +684,7 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c break; case 0x8F: // {CURRENCY} - buff = FormatGenericCurrency(buff, &_currency_specs[_opt_ptr->currency], GetInt32(&argv), false); + buff = FormatGenericCurrency(buff, _currency, GetInt32(&argv), false); break; case 0x99: { // {WAYPOINT} @@ -726,7 +726,7 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c } case 0x9C: { // {CURRENCY64} - buff = FormatGenericCurrency(buff, &_currency_specs[_opt_ptr->currency], GetInt64(&argv), false); + buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), false); break; } |