From 479026ed298bc1dd94b112e863a0e3c36de5e845 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 11 Feb 2004 03:46:54 +0000 Subject: [PATCH] fix HighScore name not saved --- stepmania/src/HighScore.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/stepmania/src/HighScore.cpp b/stepmania/src/HighScore.cpp index 7ed08bc701..8ebebcbd67 100644 --- a/stepmania/src/HighScore.cpp +++ b/stepmania/src/HighScore.cpp @@ -43,11 +43,9 @@ XNode* HighScore::CreateNode() const XNode* pNode = new XNode; pNode->name = "HighScore"; - if( IsRankingToFillIn(sName) ) - { - // TRICKY: Don't write "name to fill in" markers. - pNode->AppendChild( "Name", IsRankingToFillIn(sName) ? "" : sName ); - } + // TRICKY: Don't write "name to fill in" markers. + pNode->AppendChild( "Name", IsRankingToFillIn(sName) ? "" : sName ); + pNode->AppendChild( "sName", sName ); pNode->AppendChild( "Grade", grade ); pNode->AppendChild( "Score", iScore ); pNode->AppendChild( "PercentDP", fPercentDP );