mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Add snapping time comment
This commit is contained in:
parent
6d5883abcb
commit
217ff8238e
@ -81,6 +81,7 @@ namespace osu.Game.Beatmaps
|
||||
var beatLength = timingPoint.BeatLength / beatDivisor;
|
||||
var beatLengths = (int)Math.Round((time - timingPoint.Time) / beatLength, MidpointRounding.AwayFromZero);
|
||||
|
||||
// Casting to int matches stable.
|
||||
return (int)(timingPoint.Time + beatLengths * beatLength);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user