GetCourseSongIndex: use first enabled MultiPlayer

This commit is contained in:
Chris Danford
2007-08-27 10:28:19 +00:00
parent a2c65170a5
commit 4847c7da5a
+7 -1
View File
@@ -931,9 +931,15 @@ int GameState::GetCourseSongIndex() const
{
/* iSongsPlayed includes the current song, so it's 1-based; subtract one. */
if( GAMESTATE->m_bMultiplayer )
return STATSMAN->m_CurStageStats.m_multiPlayer[MultiPlayer_P1].m_iSongsPlayed-1;
{
FOREACH_EnabledMultiPlayer(mp)
return STATSMAN->m_CurStageStats.m_multiPlayer[mp].m_iSongsPlayed-1;
FAIL_M("At least one MultiPlayer must be joined.");
}
else
{
return STATSMAN->m_CurStageStats.m_player[m_MasterPlayerNumber].m_iSongsPlayed-1;
}
}
/* Hack: when we're loading a new course song, we want to display the new song number, even