Skip to content

Commit

Permalink
Have calcplayerrating call settopscores internally
Browse files Browse the repository at this point in the history
this will guarantee proper values indepndent of where it is called... technically this should also remove the need to also call it in the process of saving out... but leave it for now
  • Loading branch information
MinaciousGrace committed Nov 4, 2017
1 parent 7e0bcc7 commit ff9bee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,6 @@ void Profile::CalculateStatsFromScores(LoadingWindow* ld) {
m_iTotalGameplaySeconds = static_cast<int>(TotalGameplaySeconds);

SCOREMAN->RecalculateSSRs(ld);
SCOREMAN->SetAllTopScores();
SCOREMAN->CalcPlayerRating(m_fPlayerRating, m_fPlayerSkillsets);
//SCOREMAN->RatingOverTime();
}
Expand Down
2 changes: 2 additions & 0 deletions src/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ void ScoreManager::EnableAllScores() {
}

void ScoreManager::CalcPlayerRating(float& prating, float* pskillsets) {
SetAllTopScores();

vector<float> skillz;
FOREACH_ENUM(Skillset, ss) {
// actually skip overall, and jack stamina for now
Expand Down

0 comments on commit ff9bee9

Please sign in to comment.