currency.h
changeset 3596 6654541a3958
parent 2468 9ea52370a093
child 4297 d0311b62255c
equal deleted inserted replaced
3595:a0acdb23e662 3596:6654541a3958
    18 
    18 
    19 extern CurrencySpec _currency_specs[];
    19 extern CurrencySpec _currency_specs[];
    20 extern const StringID _currency_string_list[];
    20 extern const StringID _currency_string_list[];
    21 
    21 
    22 // XXX small hack, but makes the rest of the code a bit nicer to read
    22 // XXX small hack, but makes the rest of the code a bit nicer to read
    23 #define _custom_currency (_currency_specs[23])
    23 #define CUSTOM_CURRENCY_ID 23
       
    24 #define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
    24 #define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])
    25 #define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])
    25 
    26 
    26 uint GetMaskOfAllowedCurrencies(void);
    27 uint GetMaskOfAllowedCurrencies(void);
    27 void CheckSwitchToEuro(void);
    28 void CheckSwitchToEuro(void);
    28 
    29