This commit is contained in:
Chris Danford
2005-10-02 19:19:14 +00:00
parent 227c0d19c1
commit 70fb93baaa
+4 -5
View File
@@ -2282,12 +2282,11 @@ void ScreenGameplay::StageFinished( bool bBackedOut )
if( GAMESTATE->IsCourseMode() && GAMESTATE->m_PlayMode != PLAY_MODE_ENDLESS )
{
LOG->Trace("Stage finished at index %i/%i", GAMESTATE->GetCourseSongIndex(), (int) m_apSongsQueue.size() );
/* +1 to skip the current song; that's done already. */
for( unsigned iPlaySongIndex = GAMESTATE->GetCourseSongIndex()+1;
iPlaySongIndex < m_apSongsQueue.size(); ++iPlaySongIndex )
/* +1 to skip the current song; that song has already passed. */
for( unsigned i = GAMESTATE->GetCourseSongIndex()+1; i < m_apSongsQueue.size(); ++i )
{
LOG->Trace("Running stats for %i", iPlaySongIndex );
SetupSong( iPlaySongIndex );
LOG->Trace("Running stats for %i", i );
SetupSong( i );
FOREACH_EnabledPlayerInfo( m_vPlayerInfo, pi )
pi->m_pPlayer->ApplyWaitingTransforms();
SongFinished();