From 714ab3c4646388903957baab3c889a3b0af1943d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 21 May 2004 06:24:21 +0000 Subject: [PATCH] fix reading grades from a18 --- stepmania/src/HighScore.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/HighScore.cpp b/stepmania/src/HighScore.cpp index 62f31cdc46..594ed73788 100644 --- a/stepmania/src/HighScore.cpp +++ b/stepmania/src/HighScore.cpp @@ -73,7 +73,11 @@ void HighScore::LoadFromNode( const XNode* pNode ) { CString sGrade; (*child)->GetValue( sGrade ); - grade = StringToGrade( sGrade ); + /* Pre-a19 compatibility; remove eventually: */ + if( IsAnInt(sGrade) ) + grade = (Grade) atoi( sGrade ); + else + grade = StringToGrade( sGrade ); } else if( (*child)->name == "Score" ) (*child)->GetValue( iScore ); else if( (*child)->name == "PercentDP" ) (*child)->GetValue( fPercentDP );