Skip to content

Commit

Permalink
ok use ms in wife3 internally w.e
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 7, 2020
1 parent ea888b6 commit 579f17b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/RageUtil/Utils/RageUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ wife2(float maxms, float ts)
return (2 - -8) * (1 - y) + -8;
}

// unnecessary to convert to ms, use seconds
inline float
wife3(float maxms, float ts)
{
Expand All @@ -142,14 +141,14 @@ wife3(float maxms, float ts)
static const float max_points = 2.f;
static const float miss_weight = -5.5f;
// offset at which points starts decreasing(ms)
float ridic = 0.004f * ts;
float ridic = 4.f * ts;

// technically the max boo is always 180ms above j4 however this is immaterial
// to the end purpose of the scoring curve - assignment of point values
float max_boo_weight = 0.18f * ts;
float max_boo_weight = 180.f * ts;

// need positive values for this
maxms = abs(maxms);
maxms = abs(maxms * 1000.f);

// case optimizations
if (maxms <= ridic)
Expand Down

0 comments on commit 579f17b

Please sign in to comment.