1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 14:07:25 +08:00

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;
else
{
if (bottomY - fadeBottom > 0 && requiresScroll)
if (requireBottomFade)
{
c.Colour = ColourInfo.GradientVertical(
Color4.White.Opacity(Math.Min(1 - (topY - fadeBottom) / panel_height, 1)),