courses take all stages, but only count as 1 in the stage counter
This commit is contained in:
@@ -575,7 +575,7 @@ int GameState::GetNumStagesForCurrentSongAndStepsOrCourse()
|
|||||||
iNumStagesOfThisSong = GameState::GetNumStagesForSongAndStyleType( GAMESTATE->m_pCurSong, pStyle->m_StyleType );
|
iNumStagesOfThisSong = GameState::GetNumStagesForSongAndStyleType( GAMESTATE->m_pCurSong, pStyle->m_StyleType );
|
||||||
}
|
}
|
||||||
else if( GAMESTATE->m_pCurCourse )
|
else if( GAMESTATE->m_pCurCourse )
|
||||||
iNumStagesOfThisSong = 1;
|
iNumStagesOfThisSong = PREFSMAN->m_iSongsPerPlay;
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@@ -669,6 +669,9 @@ void GameState::FinishStage()
|
|||||||
ASSERT( m_iNumStagesOfThisSong >= 1 && m_iNumStagesOfThisSong <= 3 );
|
ASSERT( m_iNumStagesOfThisSong >= 1 && m_iNumStagesOfThisSong <= 3 );
|
||||||
const int iOldStageIndex = m_iCurrentStageIndex;
|
const int iOldStageIndex = m_iCurrentStageIndex;
|
||||||
|
|
||||||
|
if( IsCourseMode() )
|
||||||
|
m_iCurrentStageIndex += 1;
|
||||||
|
else
|
||||||
m_iCurrentStageIndex += m_iNumStagesOfThisSong;
|
m_iCurrentStageIndex += m_iNumStagesOfThisSong;
|
||||||
FOREACH_EnabledPlayer( p )
|
FOREACH_EnabledPlayer( p )
|
||||||
m_iPlayerCurrentStageIndexForCurrentCredit[p] += m_iNumStagesOfThisSong;
|
m_iPlayerCurrentStageIndexForCurrentCredit[p] += m_iNumStagesOfThisSong;
|
||||||
|
|||||||
Reference in New Issue
Block a user