Revert "Round 2 of this."

This reverts commit 1d7b5fe852.
This commit is contained in:
Devin J. Pohly
2013-06-04 23:47:49 -04:00
parent 1220dbe085
commit 259e9b1e00
10 changed files with 87 additions and 5 deletions
+14 -2
View File
@@ -361,7 +361,13 @@ void GameState::Reset()
void GameState::JoinPlayer( PlayerNumber pn )
{
m_iPlayerStageTokens[pn] = PREFSMAN->m_iSongsPerPlay;
/* If joint premium and we're not taking away a credit for the 2nd join,
* give the new player the same number of stage tokens that the old player
* has. */
if( GetCoinMode() == CoinMode_Pay && GetPremium() == Premium_2PlayersFor1Credit && GetNumSidesJoined() == 1 )
m_iPlayerStageTokens[pn] = m_iPlayerStageTokens[this->GetMasterPlayerNumber()];
else
m_iPlayerStageTokens[pn] = PREFSMAN->m_iSongsPerPlay;
m_bSideIsJoined[pn] = true;
@@ -485,6 +491,9 @@ int GameState::GetCoinsNeededToJoin() const
{
int iCoinsToCharge = 0;
if( GetCoinMode() == CoinMode_Pay )
iCoinsToCharge = PREFSMAN->m_iCoinsPerCredit;
// If joint premium, don't take away a credit for the second join.
if( GetPremium() == Premium_2PlayersFor1Credit &&
GetNumSidesJoined() == 1 )
@@ -2046,7 +2055,10 @@ bool GameState::IsEventMode() const
CoinMode GameState::GetCoinMode() const
{
return GamePreferences::m_CoinMode;
if( IsEventMode() && GamePreferences::m_CoinMode == CoinMode_Pay )
return CoinMode_Free;
else
return GamePreferences::m_CoinMode;
}
ThemeMetric<bool> DISABLE_PREMIUM_IN_EVENT_MODE("GameState","DisablePremiumInEventMode");