Skip to content

Commit

Permalink
Merge pull request #601 from LumpBloom7/StrictShortSlides
Browse files Browse the repository at this point in the history
Force short slides to always be strict
  • Loading branch information
LumpBloom7 authored Jul 18, 2024
2 parents 7a78fe9 + dfe8bbc commit 6b59c39
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public partial class DrawableSlideCheckpoint : DrawableSentakkiHitObject

public bool StrictSliderTracking { get; set; }

private int trackingLookBehindDistance => StrictSliderTracking ? 1 : 2;
// Short slides should always have strict tracking
// This is a QoL improvement that prevents short slides from being completed without intention when hitting a laned note along the tail.
private bool shouldBeStrict => StrictSliderTracking || ParentHitObject.SlideCheckpoints.Count <= 3;

private int trackingLookBehindDistance => shouldBeStrict ? 1 : 2;

private bool isPreviousNodeHit() => ThisIndex < trackingLookBehindDistance || ParentHitObject.SlideCheckpoints[ThisIndex - trackingLookBehindDistance].IsHit;

Expand Down

0 comments on commit 6b59c39

Please sign in to comment.