From 26dd52583a722dd554a5e2e8b8b4b054c365f6ce Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 24 Apr 2007 18:21:17 +0000 Subject: [PATCH] courses take all stages, but only count as 1 in the stage counter --- stepmania/src/GameState.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 1d7d0da5f9..bbc30bf073 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -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;