fix wrong Steps being used for first multiplayer difficulty

This commit is contained in:
Chris Danford
2007-10-27 09:04:27 +00:00
parent 7ca1ac3fff
commit e8bca9e85c
+2 -3
View File
@@ -842,6 +842,8 @@ void ScreenGameplay::InitSongQueues()
}
}
if( GAMESTATE->m_bMultiplayer )
{
for( int i=0; i<(int)m_apSongsQueue.size(); i++ )
{
Song *pSong = m_apSongsQueue[i];
@@ -861,11 +863,8 @@ void ScreenGameplay::InitSongQueues()
CLAMP( iIndexBase, 0, vpSteps.size() - GAMESTATE->m_iNumMultiplayerNoteFields );
}
if( pi->m_iAddToDifficulty > 0 )
{
int iIndexToUse = iIndexBase + pi->m_iAddToDifficulty;
CLAMP( iIndexToUse, 0, vpSteps.size()-1 );
LOG->Trace( "pi->m_iAddToDifficulty %d, iIndexToUse %d", pi->m_iAddToDifficulty, iIndexToUse );
Steps *pSteps = vpSteps[iIndexToUse];
pi->m_vpStepsQueue[i] = pSteps;