mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:52:57 +08:00
Use BeatSyncClock
This commit is contained in:
parent
9ea1f5900a
commit
a387d8df74
@ -374,8 +374,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
int timeSignature = (int)timingPoint.TimeSignature;
|
||||
|
||||
// play metronome from one measure before the first object.
|
||||
// TODO: Use BeatSyncClock from https://github.com/ppy/osu/pull/13894.
|
||||
if (Clock.CurrentTime < firstHitTime - timingPoint.BeatLength * timeSignature)
|
||||
if (BeatSyncClock.CurrentTime < firstHitTime - timingPoint.BeatLength * timeSignature)
|
||||
return;
|
||||
|
||||
sample.Frequency.Value = beatIndex % timeSignature == 0 ? 1 : 0.5f;
|
||||
|
Loading…
Reference in New Issue
Block a user