Skip to content

Commit

Permalink
only consider top scores in internal player rating function
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 4, 2017
1 parent 5df2fc0 commit 3cd733a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ float ScoreManager::AggregateSSRs(Skillset ss, float rating, float res, int iter
rating += res;
sum = 0.0;
for (int i = 0; i < static_cast<int>(TopSSRs.size()); i++) {
if(TopSSRs[i]->GetSSRCalcVersion() == GetCalcVersion() && TopSSRs[i]->GetEtternaValid() && TopSSRs[i]->GetChordCohesion() == 0)
if(TopSSRs[i]->GetSSRCalcVersion() == GetCalcVersion() && TopSSRs[i]->GetEtternaValid() && TopSSRs[i]->GetChordCohesion() == 0 && TopSSRs[i]->GetTopScore() != 0)
sum += max(0.0, 1.5f / erfc(0.1*(TopSSRs[i]->GetSkillsetSSR(ss) - rating)) - 1.5);
}
} while (pow(2, rating * 0.1) < sum);
Expand Down

0 comments on commit 3cd733a

Please sign in to comment.