fix GetCourseSongIndex in multiplayer

This commit is contained in:
Chris Danford
2007-08-24 20:27:50 +00:00
parent 271ebdbb02
commit 1bdf0c8bcf
+4 -1
View File
@@ -930,7 +930,10 @@ Stage GameState::GetCurrentStage() const
int GameState::GetCourseSongIndex() const
{
/* iSongsPlayed includes the current song, so it's 1-based; subtract one. */
return STATSMAN->m_CurStageStats.m_player[m_MasterPlayerNumber].m_iSongsPlayed-1;
if( GAMESTATE->m_bMultiplayer )
return STATSMAN->m_CurStageStats.m_multiPlayer[MultiPlayer_1].m_iSongsPlayed-1;
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