fix wrong Steps being used for first multiplayer difficulty
This commit is contained in:
@@ -842,6 +842,8 @@ void ScreenGameplay::InitSongQueues()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( GAMESTATE->m_bMultiplayer )
|
||||||
|
{
|
||||||
for( int i=0; i<(int)m_apSongsQueue.size(); i++ )
|
for( int i=0; i<(int)m_apSongsQueue.size(); i++ )
|
||||||
{
|
{
|
||||||
Song *pSong = m_apSongsQueue[i];
|
Song *pSong = m_apSongsQueue[i];
|
||||||
@@ -861,11 +863,8 @@ void ScreenGameplay::InitSongQueues()
|
|||||||
CLAMP( iIndexBase, 0, vpSteps.size() - GAMESTATE->m_iNumMultiplayerNoteFields );
|
CLAMP( iIndexBase, 0, vpSteps.size() - GAMESTATE->m_iNumMultiplayerNoteFields );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pi->m_iAddToDifficulty > 0 )
|
|
||||||
{
|
|
||||||
int iIndexToUse = iIndexBase + pi->m_iAddToDifficulty;
|
int iIndexToUse = iIndexBase + pi->m_iAddToDifficulty;
|
||||||
CLAMP( iIndexToUse, 0, vpSteps.size()-1 );
|
CLAMP( iIndexToUse, 0, vpSteps.size()-1 );
|
||||||
LOG->Trace( "pi->m_iAddToDifficulty %d, iIndexToUse %d", pi->m_iAddToDifficulty, iIndexToUse );
|
|
||||||
|
|
||||||
Steps *pSteps = vpSteps[iIndexToUse];
|
Steps *pSteps = vpSteps[iIndexToUse];
|
||||||
pi->m_vpStepsQueue[i] = pSteps;
|
pi->m_vpStepsQueue[i] = pSteps;
|
||||||
|
|||||||
Reference in New Issue
Block a user