working on course ranking scores and mem card saving

This commit is contained in:
Chris Danford
2003-02-14 21:42:44 +00:00
parent b47254c32b
commit e05738f7f7
21 changed files with 672 additions and 422 deletions
+9
View File
@@ -199,6 +199,15 @@ RageColor GameState::GetStageColor()
else return STAGE_COLOR( min(m_iCurrentStageIndex,4) );
}
int GameState::GetCourseSongIndex()
{
int iSongIndex = 0;
for( int p=0; p<NUM_PLAYERS; p++ )
if( IsPlayerEnabled(p) )
iSongIndex = max( iSongIndex, m_CurStageStats.iSongsPassed[p] );
return iSongIndex;
}
GameDef* GameState::GetCurrentGameDef()
{
ASSERT( m_CurGame != GAME_INVALID ); // the game must be set before calling this