src/currency.h
changeset 9466 5a1d4eb2ae07
parent 9413 7042a8ec3fa8
child 10344 c33159ae992a
equal deleted inserted replaced
9465:e82cff143b1f 9466:5a1d4eb2ae07
    37 
    37 
    38 extern CurrencySpec _currency_specs[NUM_CURRENCY];
    38 extern CurrencySpec _currency_specs[NUM_CURRENCY];
    39 
    39 
    40 // XXX small hack, but makes the rest of the code a bit nicer to read
    40 // XXX small hack, but makes the rest of the code a bit nicer to read
    41 #define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
    41 #define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
    42 #define _currency ((const CurrencySpec*)&_currency_specs[_settings_client.gui.currency])
    42 #define _currency ((const CurrencySpec*)&_currency_specs[_game_mode == GM_MENU ? _settings_newgame.locale.currency : _settings_game.locale.currency])
    43 
    43 
    44 uint GetMaskOfAllowedCurrencies();
    44 uint GetMaskOfAllowedCurrencies();
    45 void CheckSwitchToEuro();
    45 void CheckSwitchToEuro();
    46 void ResetCurrencies(bool preserve_custom = true);
    46 void ResetCurrencies(bool preserve_custom = true);
    47 StringID* BuildCurrencyDropdown();
    47 StringID* BuildCurrencyDropdown();