cleanup
This commit is contained in:
@@ -2282,12 +2282,11 @@ void ScreenGameplay::StageFinished( bool bBackedOut )
|
|||||||
if( GAMESTATE->IsCourseMode() && GAMESTATE->m_PlayMode != PLAY_MODE_ENDLESS )
|
if( GAMESTATE->IsCourseMode() && GAMESTATE->m_PlayMode != PLAY_MODE_ENDLESS )
|
||||||
{
|
{
|
||||||
LOG->Trace("Stage finished at index %i/%i", GAMESTATE->GetCourseSongIndex(), (int) m_apSongsQueue.size() );
|
LOG->Trace("Stage finished at index %i/%i", GAMESTATE->GetCourseSongIndex(), (int) m_apSongsQueue.size() );
|
||||||
/* +1 to skip the current song; that's done already. */
|
/* +1 to skip the current song; that song has already passed. */
|
||||||
for( unsigned iPlaySongIndex = GAMESTATE->GetCourseSongIndex()+1;
|
for( unsigned i = GAMESTATE->GetCourseSongIndex()+1; i < m_apSongsQueue.size(); ++i )
|
||||||
iPlaySongIndex < m_apSongsQueue.size(); ++iPlaySongIndex )
|
|
||||||
{
|
{
|
||||||
LOG->Trace("Running stats for %i", iPlaySongIndex );
|
LOG->Trace("Running stats for %i", i );
|
||||||
SetupSong( iPlaySongIndex );
|
SetupSong( i );
|
||||||
FOREACH_EnabledPlayerInfo( m_vPlayerInfo, pi )
|
FOREACH_EnabledPlayerInfo( m_vPlayerInfo, pi )
|
||||||
pi->m_pPlayer->ApplyWaitingTransforms();
|
pi->m_pPlayer->ApplyWaitingTransforms();
|
||||||
SongFinished();
|
SongFinished();
|
||||||
|
|||||||
Reference in New Issue
Block a user