High-level preferences that pull in other dependencies should be

moved out of PrefsManager; add GamePreferences for when we don't
have a convenient place to put it.
This commit is contained in:
Glenn Maynard
2006-11-21 04:54:50 +00:00
parent 6fd5f47bfb
commit e386583dc8
7 changed files with 79 additions and 16 deletions
+3 -2
View File
@@ -2,6 +2,7 @@
#include "GameState.h"
#include "GameManager.h"
#include "PrefsManager.h"
#include "GamePreferences.h"
#include "song.h"
#include "Course.h"
#include "RageLog.h"
@@ -1760,10 +1761,10 @@ bool GameState::IsEventMode() const
CoinMode GameState::GetCoinMode() const
{
if( IsEventMode() && PREFSMAN->m_CoinMode == COIN_MODE_PAY )
if( IsEventMode() && GamePreferences::m_CoinMode == COIN_MODE_PAY )
return COIN_MODE_FREE;
else
return PREFSMAN->m_CoinMode;
return GamePreferences::m_CoinMode;
}
Premium GameState::GetPremium() const