Replace condition with matching precalculated bool

This commit is contained in:
Dean Herbert 2021-08-13 14:50:59 +09:00
parent 93574acf72
commit 90755c0307

View File

@ -142,7 +142,7 @@ namespace osu.Game.Screens.Play.HUD
c.Colour = Color4.Transparent; c.Colour = Color4.Transparent;
else else
{ {
if (bottomY - fadeBottom > 0 && requiresScroll) if (requireBottomFade)
{ {
c.Colour = ColourInfo.GradientVertical( c.Colour = ColourInfo.GradientVertical(
Color4.White.Opacity(Math.Min(1 - (topY - fadeBottom) / panel_height, 1)), Color4.White.Opacity(Math.Min(1 - (topY - fadeBottom) / panel_height, 1)),