Skip to content

Commit

Permalink
dont process invalidated scores in aggregate ssrs
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 1, 2017
1 parent e5fbbb1 commit 69314fd
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 @@ -226,7 +226,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())
if(TopSSRs[i]->GetSSRCalcVersion() == GetCalcVersion() && TopSSRs[i]->GetEtternaValid())
sum += max(0.0, 2.f / erfc(0.1*(TopSSRs[i]->GetSkillsetSSR(ss) - rating)) - 1.5);
}
} while (pow(2, rating * 0.1) < sum);
Expand Down

0 comments on commit 69314fd

Please sign in to comment.