equal
deleted
inserted
replaced
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(); |