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:
parent
a1f96ad5f8
commit
903c8612c8
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user