Skip to content

Commit

Permalink
account for failed grades in dp->wife conversion function
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 19, 2016
1 parent afca92e commit d8520f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ float HighScore::ConvertDpToWife() {
if (m_Impl->fWifeScore > 0.f)
return m_Impl->fWifeScore;

if (m_Impl->grade == Grade_Failed)
return m_Impl->fPercentDP;

float ts = 1.f;
float estpoints = 0.f;
float maxpoints = 0.f;
Expand Down

0 comments on commit d8520f0

Please sign in to comment.