Don't skip high scores with a 0 in the Score field

Since itgmania is storing white counts in the Score field of stats.xml, ignoring these scores will eliminate quints when retrieving high scores.
This commit is contained in:
SugoiFactory
2024-03-20 03:30:50 -05:00
committed by teejusb
parent 410c4b2f9e
commit 7ac42c7f73
+1 -5
View File
@@ -397,11 +397,7 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList )
vHighScores.resize( vHighScores.size()+1 );
vHighScores.back().LoadFromNode( p );
// ignore all high scores that are 0
if( vHighScores.back().GetScore() == 0 )
vHighScores.pop_back();
else
HighGrade = std::min( vHighScores.back().GetGrade(), HighGrade );
HighGrade = std::min( vHighScores.back().GetGrade(), HighGrade );
}
}
}