mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 02:53:21 +08:00
simplify operation
This commit is contained in:
parent
a7b4f975ca
commit
3e8b26c483
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user