We want to write scores for songs that havn't been passed,

so we keep track of times played.
This commit is contained in:
Glenn Maynard
2003-03-06 23:06:21 +00:00
parent 0a0aa2a8f6
commit 2fdc892e98
+4
View File
@@ -452,11 +452,15 @@ void SongManager::SaveMachineScoresToDisk()
ASSERT(pSong);
vector<Notes*> vNotes = pSong->m_apNotes;
/* This prevents the play count from being saved for songs that havn't
* been passed. Though, it seems we only increment this when it's
* passed, anyway ...
for( int n=(int)vNotes.size()-1; n>=0; n-- )
{
if( vNotes[n]->m_MemCardScores[c].grade <= GRADE_E )
vNotes.erase( vNotes.begin()+n );
}
*/
if( vNotes.size() == 0 )
continue; // skip