1
0
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:
Naxess 2021-04-27 01:23:03 +02:00
parent 6d5883abcb
commit 217ff8238e

View File

@ -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);
}