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
commit28eec97d8f0dae1a3748be1c64cc9535b15c69a3 (patch)
tree87157df3a3d0081cea0a607cf0b4010524cd4d86 /currency.h
parent103a2aa1164fe92552cfe64c46d99b4b7dd5e82a (diff)
downloadopenttd-28eec97d8f0dae1a3748be1c64cc9535b15c69a3.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);