Skip to content

Commit

Permalink
Remove use of LegacyLastTick
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Oct 8, 2023
1 parent 2d2ac54 commit 714ef52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,8 @@ private bool isLazySlider(HitObject hitObject)
double scoringDistance = 100 * difficulty.SliderMultiplier * sliderVelocity;
double velocity = scoringDistance / timingPoint.BeatLength;
double tickDistance = scoringDistance / difficulty.SliderTickRate;
double legacyLastTickOffset = (hitObject as IHasLegacyLastTickOffset)?.LegacyLastTickOffset ?? 0;

var sliderEvents = SliderEventGenerator.Generate(hitObject.StartTime, spanDuration, velocity, tickDistance, slider.Path.Distance, slider.RepeatCount + 1, legacyLastTickOffset,
CancellationToken.None);
var sliderEvents = SliderEventGenerator.Generate(hitObject.StartTime, spanDuration, velocity, tickDistance, slider.Path.Distance, slider.RepeatCount + 1, CancellationToken.None);

var sliderOrigin = slider.Path.PositionAt(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,9 @@ private IEnumerable<Tap> createTapsFromNodes(HitObject original, IList<IList<Hit
double velocity = scoringDistance / timingPoint.BeatLength;
double tickDistance = scoringDistance / difficulty.SliderTickRate;

double legacyLastTickOffset = (original as IHasLegacyLastTickOffset)?.LegacyLastTickOffset ?? 0;

int nodeSampleIndex = 0;

foreach (var e in SliderEventGenerator.Generate(original.StartTime, spanDuration, velocity, tickDistance, curve.Path.Distance, curve.RepeatCount + 1, legacyLastTickOffset,
CancellationToken.None))
foreach (var e in SliderEventGenerator.Generate(original.StartTime, spanDuration, velocity, tickDistance, curve.Path.Distance, curve.RepeatCount + 1, CancellationToken.None))
{
switch (e.Type)
{
Expand Down

0 comments on commit 714ef52

Please sign in to comment.