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

Fix off-by-one starting bar

This commit is contained in:
Dean Herbert 2019-12-16 18:50:58 +09:00
parent 3e0fda58ea
commit c883c97bab

View File

@ -76,7 +76,7 @@ namespace osu.Game.Rulesets.Mods
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
if (beatIndex < firstBeat || !firstBeat.HasValue)
firstBeat = Math.Max(0, beatIndex / 16 * 16);
firstBeat = Math.Max(0, (beatIndex / 16 + 1) * 16);
if (beatIndex > firstBeat)
{