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

Remove unnecessary check

This commit is contained in:
iiSaLMaN 2019-08-08 17:29:52 +03:00
parent bedb744a2e
commit a3d90da7d4

View File

@ -76,7 +76,7 @@ namespace osu.Game.Graphics.Containers
/// </summary>
protected virtual void UpdateVisuals()
{
ContentDisplayed = !EnableUserDim.Value || ShowDimContent;
ContentDisplayed = ShowDimContent;
dimContent.FadeTo(ContentDisplayed ? 1 : 0, BACKGROUND_FADE_DURATION, Easing.OutQuint);
dimContent.FadeColour(EnableUserDim.Value ? OsuColour.Gray(1 - (float)UserDimLevel.Value) : Color4.White, BACKGROUND_FADE_DURATION, Easing.OutQuint);