1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 14:52:55 +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) public void ApplyToDrawableRuleset(DrawableRuleset<TObject> drawableRuleset)
{ {
if (!EnableMetronome.Value) return; if (EnableMetronome.Value)
{
drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer drawableRuleset.Overlays.Add(metronomeContainer = new AudioContainer
{ {
Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime) Child = new Metronome(drawableRuleset.Beatmap.HitObjects.First().StartTime)
}); });
metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust); metronomeContainer.AddAdjustment(AdjustableProperty.Volume, metronomeVolumeAdjust);
}
if (AffectsHitSounds.Value) if (AffectsHitSounds.Value)
drawableRuleset.AudioContainer.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust); drawableRuleset.AudioContainer.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust);