1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 04:41:19 +08:00

Remove unnecessary casts

This commit is contained in:
n4b3l
2016-12-17 15:06:56 +01:00
Unverified
parent ba81222af6
commit c73fbe6e42
+2 -2
View File
@@ -149,14 +149,14 @@ namespace osu.Game.Screens.Play
base.OnEntering(last);
(Background as BackgroundModeBeatmap)?.BlurTo(Vector2.Zero, 1000);
(Background as BackgroundModeBeatmap)?.FadeTo((100f- dimLevel)/100,1000);
Background?.FadeTo((100f- dimLevel)/100,1000);
Content.Alpha = 0;
}
protected override bool OnExiting(GameMode next)
{
(Background as BackgroundModeBeatmap)?.FadeTo(1f, 0);
Background?.FadeTo(1f, 0);
return base.OnExiting(next);
}