smarter menu button blinking

This commit is contained in:
Chris Danford
2004-03-30 08:03:00 +00:00
parent 95e11e9220
commit 493c6c8103
3 changed files with 35 additions and 7 deletions
+16 -1
View File
@@ -633,7 +633,22 @@ int GameState::GetCourseSongIndex() const
bool GameState::PlayersCanJoin() const
{
return GetNumSidesJoined() == 0 || this->m_CurStyle == STYLE_INVALID;
return GetNumSidesJoined() == 0 || this->m_CurStyle == STYLE_INVALID; // selecting a style finalizes the players
}
bool GameState::EnoughCreditsToJoin() const
{
switch( PREFSMAN->m_iCoinMode )
{
case COIN_PAY:
return GAMESTATE->m_iCoins >= PREFSMAN->m_iCoinsPerCredit;
case COIN_HOME:
case COIN_FREE:
return true;
default:
ASSERT(0);
return false;
}
}
int GameState::GetNumSidesJoined() const