Skip to content

Commit

Permalink
append rate last so it displays next to score during score save
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 3, 2017
1 parent 4073f0a commit f455c7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ChartScores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ XNode* ScoresAtRate::CreateNode(const int& rate) const {

string rs = IntToString(rate);
rs = rs.substr(0, 1) + "." + rs.substr(1, 3);
o->AppendAttr("Rate", rs);

// should be safe as this is only called if there is at least 1 score (which would be the pb)
o->AppendAttr("PBKey", PBptr->GetScoreKey());
o->AppendAttr("BestGrade", GradeToString(bestGrade));
o->AppendAttr("Rate", rs);

FOREACHM_CONST(string, HighScore, scores, i)
o->AppendChild(i->second.CreateEttNode());
Expand Down

0 comments on commit f455c7e

Please sign in to comment.