Skip to content

Commit

Permalink
unload replaydata after using it for rescore functions and fix lack o…
Browse files Browse the repository at this point in the history
…f mine consideration (again?)
  • Loading branch information
MinaciousGrace committed May 1, 2017
1 parent 814214d commit ac84e24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,9 @@ float HighScore::RescoreToWifeJudge(int x) {
p += wife2(*f, ts);

p += (m_Impl->iHoldNoteScores[HNS_LetGo] + m_Impl->iHoldNoteScores[HNS_Missed]) * -6.f;
p += m_Impl->iTapNoteScores[TNS_HitMine] * -8.f;

UnloadReplayData();
return p / static_cast<float>(m_Impl->vOffsetVector.size() * 2);
}

Expand All @@ -951,6 +954,9 @@ float HighScore::RescoreToWifeJudgeDuringLoad(int x) {
p += wife2(*f, ts);

p += (m_Impl->iHoldNoteScores[HNS_LetGo] + m_Impl->iHoldNoteScores[HNS_Missed]) * -6.f;
p += m_Impl->iTapNoteScores[TNS_HitMine] * -8.f;

UnloadReplayData();
return p / static_cast<float>(m_Impl->vOffsetVector.size() * 2);
}

Expand Down

0 comments on commit ac84e24

Please sign in to comment.