Skip to content

Commit

Permalink
actually skip recalculate if steps are invalid, accomodate conversion…
Browse files Browse the repository at this point in the history
… from pre-chart-usage profiles
  • Loading branch information
MinaciousGrace committed May 30, 2017
1 parent be7b56d commit 35a6438
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ void ScoreManager::RecalculateSSRs() {
HighScore* hs = AllScores[i];
Steps* steps = SONGMAN->GetStepsByChartkey(hs->GetChartKey());

if (steps && !steps->IsRecalcValid()) {
if (!steps)
continue;

if (!steps->IsRecalcValid()) {
FOREACH_ENUM(Skillset, ss)
hs->SetSkillsetSSR(ss, 0.f);
continue;
Expand Down Expand Up @@ -371,14 +374,17 @@ void ScoresAtRate::LoadFromNode(const XNode* node, const string& ck, const float
}

void ScoresForChart::LoadFromNode(const XNode* node, const string& ck) {
RString rs;
RString rs = "";
int rate;

if(node->GetName() == "Chart")
ch.LoadFromNode(node);

if (ch.lastsong == "")
return;
if (node->GetName() == "ChartScores") {
node->GetAttrValue("Key", rs);
ch.key = rs;
node->GetAttrValue("Song", ch.lastsong);
}

FOREACH_CONST_Child(node, p) {
ASSERT(p->GetName() == "ScoresAt");
Expand Down

0 comments on commit 35a6438

Please sign in to comment.