Skip to content

Commit

Permalink
Flip unsnap sign.
Browse files Browse the repository at this point in the history
An unsnap 2 ms late should say "unsnapped by 2 ms", not "-2 ms" as it did before.
  • Loading branch information
Naxesss committed Sep 21, 2021
1 parent 183fb6d commit 80b1aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/Beatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public double GetTheoreticalUnsnap(double time, int divisor, UninheritedLine lin
double currentFraction = beatOffset / line.msPerBeat;

double desiredFraction = Math.Round(currentFraction * divisor) / divisor;
double differenceFraction = currentFraction - desiredFraction;
double differenceFraction = desiredFraction - currentFraction;
double theoreticalUnsnap = differenceFraction * line.msPerBeat;

return theoreticalUnsnap;
Expand Down

0 comments on commit 80b1aaa

Please sign in to comment.