From 8c8595d94b64d931ca09044d2dc43fa53bbcc30b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 22 Feb 2004 04:20:20 +0000 Subject: [PATCH] omit more unplayed data --- stepmania/src/Profile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 64085cfb0b..ccfa512e6f 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -493,13 +493,21 @@ XNode* Profile::SaveGeneralDataCreateNode() const { XNode* pNumSongsPlayedByDifficulty = pGeneralDataNode->AppendChild("NumSongsPlayedByDifficulty"); FOREACH_Difficulty( dc ) + { + if( !m_iNumSongsPlayedByDifficulty[dc] ) + continue; pNumSongsPlayedByDifficulty->AppendChild( DifficultyToString(dc), m_iNumSongsPlayedByDifficulty[dc] ); + } } { XNode* pNumSongsPlayedByMeter = pGeneralDataNode->AppendChild("NumSongsPlayedByMeter"); for( int i=0; iAppendChild( ssprintf("Meter%d",i), m_iNumSongsPlayedByMeter[i] ); + } } return pGeneralDataNode;