Fix AllowGameplayOverlays potentially not working for outro skip overlay

This commit is contained in:
Dean Herbert 2021-05-04 16:36:05 +09:00
parent b30145de40
commit 4c7a4239f8

View File

@ -245,8 +245,6 @@ namespace osu.Game.Screens.Play
HUDOverlay.ShowHud.Value = false;
HUDOverlay.ShowHud.Disabled = true;
BreakOverlay.Hide();
skipIntroOverlay.Hide();
skipOutroOverlay.Hide();
}
DrawableRuleset.FrameStableClock.WaitingOnFrames.BindValueChanged(waiting =>
@ -398,7 +396,7 @@ namespace osu.Game.Screens.Play
}
};
if (!Configuration.AllowSkipping)
if (!Configuration.AllowSkipping || !DrawableRuleset.AllowGameplayOverlays)
{
skipIntroOverlay.Expire();
skipOutroOverlay.Expire();