optimize Stats.xml file size: don't save "none" count

This commit is contained in:
Chris Danford
2004-08-28 21:26:31 +00:00
parent 160e8bfbd1
commit d3fb44c32d
+4 -2
View File
@@ -50,10 +50,12 @@ XNode* HighScore::CreateNode() const
pNode->AppendChild( "ProductID", iProductID );
XNode* pTapNoteScores = pNode->AppendChild( "TapNoteScores" );
FOREACH_TapNoteScore( tns )
pTapNoteScores->AppendChild( TapNoteScoreToString(tns), iTapNoteScores[tns] );
if( tns != TNS_NONE ) // HACK: don't save meaningless "none" count
pTapNoteScores->AppendChild( TapNoteScoreToString(tns), iTapNoteScores[tns] );
XNode* pHoldNoteScores = pNode->AppendChild( "HoldNoteScores" );
FOREACH_HoldNoteScore( hns )
pHoldNoteScores->AppendChild( HoldNoteScoreToString(hns), iHoldNoteScores[hns] );
if( hns != TNS_NONE ) // HACK: don't save meaningless "none" count
pHoldNoteScores->AppendChild( HoldNoteScoreToString(hns), iHoldNoteScores[hns] );
pNode->AppendChild( radarValues.CreateNode() );
return pNode;