1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Fix regressed metronome handling

This commit is contained in:
Dean Herbert 2021-07-30 19:38:43 +09:00
parent d5e68f53b5
commit cd516c4ac7

View File

@ -74,14 +74,15 @@ namespace osu.Game.Rulesets.Mods
public void ApplyToDrawableRuleset(DrawableRuleset<TObject> drawableRuleset)
{
if (!EnableMetronome.Value) return;
drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer
if (EnableMetronome.Value)
{
Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime)
});
drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer
{
Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime)
});
metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
}
if (AffectsHitSounds.Value)
drawableRuleset.AudioContainer.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust);