1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 02:53:21 +08:00

simplify operation

This commit is contained in:
Hiviexd 2024-11-20 01:49:01 +01:00
parent a7b4f975ca
commit 3e8b26c483

View File

@ -116,7 +116,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
private int getSnapBetweenNotes(ControlPointInfo controlPointInfo, Hit currentNote, Hit nextNote)
{
double gapMs = Math.Max(currentNote.StartTime, nextNote.StartTime) - Math.Min(currentNote.StartTime, nextNote.StartTime);
double gapMs = nextNote.StartTime - currentNote.StartTime;
var currentTimingPoint = controlPointInfo.TimingPointAt(currentNote.StartTime);
return controlPointInfo.GetClosestBeatDivisor(gapMs + currentTimingPoint.Time);