fix edit high score hash saving

don't save machine high scores for edits
This commit is contained in:
Chris Danford
2004-04-23 02:19:45 +00:00
parent ab1d3bfd0e
commit b28f440883
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -434,14 +434,18 @@ int ProfileManager::GetSongNumTimesPlayed( const Song* pSong, ProfileSlot slot )
void ProfileManager::AddStepsScore( const Song* pSong, const Steps* pSteps, PlayerNumber pn, HighScore hs, int &iPersonalIndexOut, int &iMachineIndexOut )
{
hs.sName = RANKING_TO_FILL_IN_MARKER[pn];
if( hs.fPercentDP >= PREFSMAN->m_fMinPercentageForHighScore )
{
hs.sName = RANKING_TO_FILL_IN_MARKER[pn];
if( PROFILEMAN->IsUsingProfile(pn) )
PROFILEMAN->GetProfile(pn)->AddStepsHighScore( pSong, pSteps, hs, iPersonalIndexOut );
else
iPersonalIndexOut = -1;
PROFILEMAN->GetMachineProfile()->AddStepsHighScore( pSong, pSteps, hs, iMachineIndexOut );
// don't leave machine high scores for edits
if( pSteps->GetDifficulty() != DIFFICULTY_EDIT )
PROFILEMAN->GetMachineProfile()->AddStepsHighScore( pSong, pSteps, hs, iMachineIndexOut );
}
if( PROFILEMAN->IsUsingProfile(pn) )