Skip to content

Commit

Permalink
yeah there was a fucking reason i had it done this way
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Apr 10, 2020
1 parent 6ac5dba commit 0d4c457
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,15 +831,14 @@ Hand::CalcInternal(float x, bool stam, bool nps, bool js, bool hs)
diff[i] * anchorscale[i] * sqrt(ohjumpscale[i]) * rollscale[i];
}

if (stam)
StamAdjust(x, diff);
finalMSDvals = diff; // bad bad bad bad bad bad bad bad bad bad
const vector<float>& v = stam ? StamAdjust(x, diff) : diff;
finalMSDvals = v; // bad bad bad bad bad bad bad bad bad bad
float output = 0.f;
std::vector<float> pointloss;
for (size_t i = 0; i < diff.size(); i++) {
float gainedpoints = x > diff[i]
for (size_t i = 0; i < v.size(); i++) {
float gainedpoints = x > v[i]
? v_itvpoints[i]
: v_itvpoints[i] * pow(x / diff[i], 1.8f);
: v_itvpoints[i] * pow(x / v[i], 1.8f);

output += gainedpoints;
pointloss.push_back(v_itvpoints[i] - gainedpoints);
Expand Down

0 comments on commit 0d4c457

Please sign in to comment.