(svn r4487) - Codechange: replace the custom currency magic number 23 with a define

This commit is contained in:
peter1138
2006-04-20 21:13:08 +00:00
parent 103a2aa116
commit 28eec97d8f
4 changed files with 5 additions and 5 deletions

View File

@@ -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);