(svn r21695) -Codechange: add helper function to get the currently applicable GameSettings object

This commit is contained in:
yexo
2011-01-02 00:34:21 +00:00
parent a25d6c64dd
commit 3ca65ab7b3
4 changed files with 20 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ extern CurrencySpec _currency_specs[NUM_CURRENCY];
/* XXX small hack, but makes the rest of the code a bit nicer to read */
#define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
#define _currency ((const CurrencySpec*)&_currency_specs[_game_mode == GM_MENU ? _settings_newgame.locale.currency : _settings_game.locale.currency])
#define _currency ((const CurrencySpec*)&_currency_specs[GetGameSettings().locale.currency])
uint GetMaskOfAllowedCurrencies();
void CheckSwitchToEuro();