From c0e898de30b91a42f23102a2bf76fdcacb042014 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 24 Feb 2003 02:58:31 +0000 Subject: [PATCH] increment SongsPlayed at the beginning of the song, not the end --- stepmania/src/ScreenGameplay.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index e8a9ba07de..80e216cc07 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -516,6 +516,9 @@ void ScreenGameplay::LoadNextSong() // If it's the first song, record the options the player selected for later. if( GAMESTATE->m_CurStageStats.iSongsPlayed[p] == 0 ) GAMESTATE->m_SelectedOptions[p] = GAMESTATE->m_PlayerOptions[p]; + + if( GAMESTATE->IsPlayerEnabled(p) ) + GAMESTATE->m_CurStageStats.iSongsPlayed[p]++; } switch( GAMESTATE->m_PlayMode ) @@ -527,7 +530,7 @@ void ScreenGameplay::LoadNextSong() case PLAY_MODE_ENDLESS: { for( p=0; pm_CurStageStats.iSongsPlayed[p]+1) ); + m_textCourseSongNumber[p].SetText( ssprintf("%d", GAMESTATE->m_CurStageStats.iSongsPlayed[p]) ); int iPlaySongIndex = GAMESTATE->GetCourseSongIndex(); iPlaySongIndex %= m_apCourseSongs.size(); @@ -1232,7 +1235,6 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM ) if( !GAMESTATE->IsPlayerEnabled(p) ) continue; - GAMESTATE->m_CurStageStats.iSongsPlayed[p]++; if( !GAMESTATE->m_CurStageStats.bFailed[p] ) GAMESTATE->m_CurStageStats.iSongsPassed[p]++; }