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
+6 -3
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;
@@ -668,8 +668,11 @@ void GameState::FinishStage()
// Increment the stage counter.
ASSERT( m_iNumStagesOfThisSong >= 1 && m_iNumStagesOfThisSong <= 3 );
const int iOldStageIndex = m_iCurrentStageIndex;
m_iCurrentStageIndex += m_iNumStagesOfThisSong;
if( IsCourseMode() )
m_iCurrentStageIndex += 1;
else
m_iCurrentStageIndex += m_iNumStagesOfThisSong;
FOREACH_EnabledPlayer( p )
m_iPlayerCurrentStageIndexForCurrentCredit[p] += m_iNumStagesOfThisSong;