Skip to content

Commit

Permalink
actually ignore the highscore preferences when saving scores
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Feeney committed Dec 5, 2016
1 parent a154851 commit 271a4be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,13 +524,16 @@ void HighScoreList::RemoveAllButOneOfEachName()
}
}

/* commented out functionality instead of obliterating in
case some of you for whatever reason want to reenable this
- Mina */
void HighScoreList::ClampSize( bool bIsMachine )
{
const int iMaxScores = bIsMachine ?
PREFSMAN->m_iMaxHighScoresPerListForMachine :
PREFSMAN->m_iMaxHighScoresPerListForPlayer;
if( vHighScores.size() > unsigned(iMaxScores) )
vHighScores.erase( vHighScores.begin()+iMaxScores, vHighScores.end() );
//if( vHighScores.size() > unsigned(iMaxScores) )
// vHighScores.erase( vHighScores.begin()+iMaxScores, vHighScores.end() );
}

void HighScoreList::MergeFromOtherHSL(HighScoreList& other, bool is_machine)
Expand Down

0 comments on commit 271a4be

Please sign in to comment.