From c21314e11495dc8b15538a0892ca17c8e02f38d4 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 3 Jun 2005 05:05:54 +0000 Subject: [PATCH] fix coins subtracted in event mode --- stepmania/src/GameCommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index c4c91faf91..10ca8fe81e 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -685,7 +685,7 @@ void GameCommand::ApplySelf( const vector &vpns ) const // players joined. If enough players aren't joined, then // we need to subtract credits for the sides that will be // joined as a result of applying this option. - if( PREFSMAN->m_CoinMode == COIN_MODE_PAY ) + if( GAMESTATE->GetCoinMode() == COIN_MODE_PAY ) { int iNumCreditsRequired = GetCreditsRequiredToPlayStyle(m_pStyle); int iNumCreditsPaid = GetNumCreditsPaid(); @@ -713,7 +713,7 @@ void GameCommand::ApplySelf( const vector &vpns ) const ASSERT(0); } } - if( m_dc != DIFFICULTY_INVALID ) + if( m_dc != DIFFICULTY_INVALID ) FOREACH_CONST( PlayerNumber, vpns, pn ) GAMESTATE->ChangePreferredDifficulty( *pn, m_dc ); if( m_sAnnouncer != "" )