Skip to content

Commit

Permalink
Fix improper slider judgement considerations
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Nov 12, 2024
1 parent d7a1ed2 commit 301a286
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ export const run: SlashCommand["run"] = async (_, interaction) => {
// Start with slider head first.
addSliderNestedResult(
object.nestedHitObjects[0],
Math.abs(hitAccuracy) !== Math.floor(simulatedHitWindow50) + 13,
-simulatedHitWindow50 <= hitAccuracy &&
hitAccuracy <=
Math.min(simulatedHitWindow50, object.duration),
);

// Then, handle the slider ticks and repeats.
Expand Down
5 changes: 4 additions & 1 deletion src/utils/timingdistribution/TimingDistributionChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ export class TimingDistributionChart {

if (
object instanceof Slider &&
objectData.accuracy === Math.floor(hitWindow50) + 13
!(
-hitWindow50 > objectData.accuracy ||
objectData.accuracy > Math.min(hitWindow50, object.duration)
)
) {
continue;
}
Expand Down

0 comments on commit 301a286

Please sign in to comment.