Skip to content

Commit

Permalink
only reset and recalculate ssrs for loaded songs, more calc tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 21, 2016
1 parent 116ad18 commit bb2d5a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified extern/MinaCalc/MinaCalc.lib
Binary file not shown.
6 changes: 6 additions & 0 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,9 @@ void Profile::CalcPlayerRating(float& overall, float& speed, float& stam, float&
vector<float> vSSRJack;
FOREACHM_CONST(SongID, HighScoresForASong, m_SongHighScores, i) {
const SongID& id = i->first;
// skip files that can't be loaded since we can't verify their ssrs - mina
if (!id.IsValid())
continue;
const HighScoresForASong& hsfas = i->second;
FOREACHM_CONST(StepsID, HighScoresForASteps, hsfas.m_StepsHighScores, j) {
const HighScoresForASteps& zz = j->second;
Expand All @@ -2107,6 +2110,9 @@ void Profile::CalcPlayerRating(float& overall, float& speed, float& stam, float&
void Profile::ResetAllSSRs() {
FOREACHM(SongID, HighScoresForASong, m_SongHighScores, i) {
const SongID& id = i->first;
// for now only reset ssrs for loaded files - mina
if (!id.IsValid())
continue;
HighScoresForASong& hsfas = i->second;
FOREACHM(StepsID, HighScoresForASteps, hsfas.m_StepsHighScores, j) {
HighScoresForASteps& zz = j->second;
Expand Down

0 comments on commit bb2d5a5

Please sign in to comment.