mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +08:00
Fix time until next beat potentially being exactly zero at point of trigger
This commit is contained in:
parent
23ed77f2c6
commit
87d3bd4b93
@ -151,7 +151,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
beatIndex--;
|
beatIndex--;
|
||||||
|
|
||||||
TimeUntilNextBeat = (timingPoint.Time - currentTrackTime) % beatLength;
|
TimeUntilNextBeat = (timingPoint.Time - currentTrackTime) % beatLength;
|
||||||
if (TimeUntilNextBeat < 0)
|
if (TimeUntilNextBeat <= 0)
|
||||||
TimeUntilNextBeat += beatLength;
|
TimeUntilNextBeat += beatLength;
|
||||||
|
|
||||||
TimeSinceLastBeat = beatLength - TimeUntilNextBeat;
|
TimeSinceLastBeat = beatLength - TimeUntilNextBeat;
|
||||||
|
Loading…
Reference in New Issue
Block a user