From 70fb93baaadd7d2d1bf38886759f8bab2db928d1 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 2 Oct 2005 19:19:14 +0000 Subject: [PATCH] cleanup --- stepmania/src/ScreenGameplay.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index a34d850932..244d9d421d 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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();