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 ) 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();