summaryrefslogtreecommitdiff
path: root/currency.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-27 20:55:42 +0000
committertron <tron@openttd.org>2005-09-27 20:55:42 +0000
commit6249dd46ad3b1b23ae959f57a0def00cf98dd8ee (patch)
tree9531eb35ea928a52105ec058a27e4be704633242 /currency.h
parent5f3bb18eb70826d1e35351112b50a5bbce3af799 (diff)
downloadopenttd-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 'currency.h')
-rw-r--r--currency.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/currency.h b/currency.h
index 297346273..596428a40 100644
--- a/currency.h
+++ b/currency.h
@@ -21,9 +21,9 @@ extern const StringID _currency_string_list[];
// XXX small hack, but makes the rest of the code a bit nicer to read
#define _custom_currency (_currency_specs[23])
+#define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])
uint GetMaskOfAllowedCurrencies(void);
-uint GetCurrentCurrencyRate(void);
void CheckSwitchToEuro(void);
#endif /* CURRENCY_H */