Merge branch 'diffcalc-fixes' into xexxar-angles

This commit is contained in:
smoogipoo
2019-01-20 22:19:50 +09:00
109 changed files with 1139 additions and 650 deletions

View File

@ -119,8 +119,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
float approxFollowCircleRadius = (float)(slider.Radius * 3);
var computeVertex = new Action<double>(t =>
{
double progress = ((int)t - (int)slider.StartTime) / (float)(int)slider.SpanDuration;
if (progress % 2 > 1)
double progress = (t - slider.StartTime) / slider.SpanDuration;
if (progress % 2 >= 1)
progress = 1 - progress % 1;
else
progress = progress % 1;