1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 13:22:55 +08:00

Move endTime to next timing point

This commit is contained in:
sw1tchbl4d3 2022-10-07 20:34:31 +02:00
parent a1f96ad5f8
commit 903c8612c8

View File

@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Objects
int currentBeat = 0; int currentBeat = 0;
// Stop on the beat before the next timing point, or if there is no next timing point stop slightly past the last object // Stop on the beat before the next timing point, or if there is no next timing point stop slightly past the last object
double endTime = i < timingPoints.Count - 1 ? timingPoints[i + 1].Time - currentTimingPoint.BeatLength : lastHitTime + currentTimingPoint.BeatLength * currentTimingPoint.TimeSignature.Numerator; double endTime = i < timingPoints.Count - 1 ? timingPoints[i + 1].Time : lastHitTime + currentTimingPoint.BeatLength * currentTimingPoint.TimeSignature.Numerator;
double barLength = currentTimingPoint.BeatLength * currentTimingPoint.TimeSignature.Numerator; double barLength = currentTimingPoint.BeatLength * currentTimingPoint.TimeSignature.Numerator;