From c73fbe6e427d887768f4abba554eafb9561c8692 Mon Sep 17 00:00:00 2001 From: n4b3l Date: Sat, 17 Dec 2016 15:06:56 +0100 Subject: [PATCH] Remove unnecessary casts --- osu.Game/Screens/Play/Player.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index d9cee732aa..5f28b0e17b 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -149,14 +149,14 @@ protected override void OnEntering(GameMode last) 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); }