This commit is contained in:
Glenn Maynard
2003-03-28 00:34:59 +00:00
parent d8479fc99c
commit 590827ae5f
+4 -7
View File
@@ -345,18 +345,15 @@ void SongManager::InitMachineScoresFromDisk()
else else
pNotes = pSong->GetNotes( nt, dc ); pNotes = pSong->GetNotes( nt, dc );
} }
int iNumTimesPlayed;
Grade grade;
float fScore;
getline(f, line); getline(f, line);
sscanf(line.GetString(), "%d %d %f\n", &iNumTimesPlayed, &grade, &fScore );
if( pNotes ) if( pNotes )
{ {
pNotes->m_MemCardScores[c].iNumTimesPlayed = iNumTimesPlayed; sscanf(line.GetString(), "%d %d %f\n",
pNotes->m_MemCardScores[c].grade = grade; &pNotes->m_MemCardScores[c].iNumTimesPlayed,
pNotes->m_MemCardScores[c].fScore = fScore; &pNotes->m_MemCardScores[c].grade,
&pNotes->m_MemCardScores[c].fScore);
} }
} }
} }