(svn r13242) -Codechange: remove _opt_ptr.

This commit is contained in:
rubidium
2008-05-25 12:57:39 +00:00
parent f6ea07e7d8
commit 5fa0946c08
10 changed files with 64 additions and 66 deletions

View File

@@ -39,7 +39,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[_opt_ptr->currency])
#define _currency ((const CurrencySpec*)&_currency_specs[(_game_mode == GM_MENU) ? _opt_newgame.currency : _opt.currency])
uint GetMaskOfAllowedCurrencies();
void CheckSwitchToEuro();