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:
parent
154bc57c6e
commit
88d3a1707d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user