Fix beat playing while paused

This commit is contained in:
Dean Herbert
2019-12-16 18:51:22 +09:00
parent c883c97bab
commit 0f9ff32cdc
2 changed files with 15 additions and 1 deletions

View File

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