only keep top 3 scores in players' stats.xml to keep the file size small

This commit is contained in:
Chris Danford
2004-05-28 04:46:43 +00:00
parent 58439b1ed8
commit aee70ad0cc
7 changed files with 36 additions and 24 deletions
+2 -2
View File
@@ -100,8 +100,8 @@ void HighScoreWheelItem::ShowFocus()
void HighScoreWheel::Load( const HighScoreList& hsl, int iIndexToFocus )
{
m_Items.resize( PREFSMAN->m_iMaxHighScoresPerList );
for( int i=0; i<PREFSMAN->m_iMaxHighScoresPerList; i++ )
m_Items.resize( PREFSMAN->m_iMaxHighScoresPerListForMachine );
for( int i=0; i<PREFSMAN->m_iMaxHighScoresPerListForMachine; i++ )
{
if( unsigned(i) < hsl.vHighScores.size() )
m_Items[i].Load( i, hsl.vHighScores[i] );