Skip to content

Commit

Permalink
Fix linear type sliders getting incorrectly interpolated in Tumour Ge…
Browse files Browse the repository at this point in the history
…nerator 2
  • Loading branch information
OliBomby committed Oct 12, 2023
1 parent 9622e49 commit 6e1d050
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Mapping_Tools.Classes.BeatmapHelper.Enums;
using Mapping_Tools.Classes.BeatmapHelper.SliderPathStuff;
using Mapping_Tools.Classes.MathUtil;

Expand Down Expand Up @@ -41,7 +42,7 @@ public static PathWithHints CreatePathWithHints(SliderPath sliderPath) {
}

// Check if i+1 is the first point in the next segment so we know i is a red anchor
bool isRedAnchor = segmentIndex < segmentsStarts.Count && i + 1 == segmentsStarts[segmentIndex] && i != 0;
bool isRedAnchor = sliderPath.Type == PathType.Linear || (segmentIndex < segmentsStarts.Count && i + 1 == segmentsStarts[segmentIndex] && i != 0);

// Update cumulative length
double dist = 0;
Expand Down

0 comments on commit 6e1d050

Please sign in to comment.