clear ranking "name to fill in" markers on save

This commit is contained in:
Chris Danford
2003-11-09 21:40:20 +00:00
parent 8e92fb0e58
commit 6366d979ce
3 changed files with 18 additions and 0 deletions
+5
View File
@@ -338,6 +338,11 @@ bool Steps::MemCardData::HighScore::operator>=( const Steps::MemCardData::HighSc
void Steps::MemCardData::AddHighScore( Steps::MemCardData::HighScore hs, int &iIndexOut )
{
int i;
for( i=0; i<(int)vHighScores.size(); i++ )
{
ASSERT( vHighScores[i].sName != RANKING_TO_FILL_IN_MARKER[0] );
}
for( i=0; i<(int)vHighScores.size(); i++ )
{
if( hs >= vHighScores[i] ) // tie goes to new score