1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

truncate hit object end time

This commit is contained in:
OliBomby 2023-07-18 12:18:43 +02:00
parent 1d837a8725
commit c02684d985

View File

@ -60,6 +60,9 @@ namespace osu.Game.Database
{
hitObject.StartTime = Math.Floor(hitObject.StartTime);
if (hitObject is IHasDuration hasDuration && hitObject is not IHasPath)
hasDuration.Duration = Math.Floor(hasDuration.Duration);
if (hitObject is not IHasPath hasPath || BezierConverter.CountSegments(hasPath.Path.ControlPoints) <= 1) continue;
var newControlPoints = BezierConverter.ConvertToModernBezier(hasPath.Path.ControlPoints);