courses take all stages, but only count as 1 in the stage counter

This commit is contained in:
Glenn Maynard
2007-04-24 18:21:17 +00:00
parent 9556754d30
commit 26dd52583a
+4 -1
View File
@@ -575,7 +575,7 @@ int GameState::GetNumStagesForCurrentSongAndStepsOrCourse()
iNumStagesOfThisSong = GameState::GetNumStagesForSongAndStyleType( GAMESTATE->m_pCurSong, pStyle->m_StyleType );
}
else if( GAMESTATE->m_pCurCourse )
iNumStagesOfThisSong = 1;
iNumStagesOfThisSong = PREFSMAN->m_iSongsPerPlay;
else
return -1;
@@ -669,6 +669,9 @@ void GameState::FinishStage()
ASSERT( m_iNumStagesOfThisSong >= 1 && m_iNumStagesOfThisSong <= 3 );
const int iOldStageIndex = m_iCurrentStageIndex;
if( IsCourseMode() )
m_iCurrentStageIndex += 1;
else
m_iCurrentStageIndex += m_iNumStagesOfThisSong;
FOREACH_EnabledPlayer( p )
m_iPlayerCurrentStageIndexForCurrentCredit[p] += m_iNumStagesOfThisSong;