(svn r2830) Move CheckSwitchToEuro() to currency.[ch] and hide the truth about the custom currency behind a #define

This commit is contained in:
tron
2005-08-07 12:41:57 +00:00
parent 59da8350c1
commit 14e80ca159
6 changed files with 42 additions and 39 deletions

View File

@@ -19,7 +19,11 @@ typedef struct {
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])
uint GetMaskOfAllowedCurrencies(void);
uint GetCurrentCurrencyRate(void);
void CheckSwitchToEuro(void);
#endif