summaryrefslogtreecommitdiff
path: root/currency.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-20 21:13:08 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-20 21:13:08 +0000
commit5ddf986c8d307374081593dc397ae1822704f70f (patch)
tree87157df3a3d0081cea0a607cf0b4010524cd4d86 /currency.h
parent92d8af75dbf7a258f8964924a47dab199c4369e6 (diff)
downloadopenttd-5ddf986c8d307374081593dc397ae1822704f70f.tar.xz
(svn r4487) - Codechange: replace the custom currency magic number 23 with a define
Diffstat (limited to 'currency.h')
-rw-r--r--currency.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/currency.h b/currency.h
index 596428a40..a94f85eb2 100644
--- a/currency.h
+++ b/currency.h
@@ -20,7 +20,8 @@ extern CurrencySpec _currency_specs[];
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 CUSTOM_CURRENCY_ID 23
+#define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
#define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])
uint GetMaskOfAllowedCurrencies(void);