simplify
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user