1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 12:32:58 +08:00

ensure beatIndex is 0 before starting beats

This commit is contained in:
unknown 2019-12-16 06:35:18 +08:00
parent 154bc57c6e
commit 88d3a1707d

View File

@ -55,6 +55,7 @@ namespace osu.Game.Rulesets.Mods
private SkinnableSound clapSample;
private SkinnableSound kickSample;
private SkinnableSound finishSample;
private bool started;
[BackgroundDependencyLoader]
private void load()
@ -72,7 +73,10 @@ namespace osu.Game.Rulesets.Mods
{
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
if (beatIndex > -1)
if (!started && beatIndex == 0)
started = true;
if (started && beatIndex > -1)
{
if (beatIndex % 16 == 0)
finishSample?.Play();