mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Fix variable hiding
This commit is contained in:
parent
f670e4664d
commit
1086688e0a
@ -58,16 +58,16 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
|
|
||||||
private Background createBackground()
|
private Background createBackground()
|
||||||
{
|
{
|
||||||
Background background;
|
Background newBackground;
|
||||||
|
|
||||||
if (user.Value?.IsSupporter ?? false)
|
if (user.Value?.IsSupporter ?? false)
|
||||||
background = new SkinnedBackground(skin.Value, backgroundName);
|
newBackground = new SkinnedBackground(skin.Value, backgroundName);
|
||||||
else
|
else
|
||||||
background = new Background(backgroundName);
|
newBackground = new Background(backgroundName);
|
||||||
|
|
||||||
background.Depth = currentDisplay;
|
newBackground.Depth = currentDisplay;
|
||||||
|
|
||||||
return background;
|
return newBackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SkinnedBackground : Background
|
private class SkinnedBackground : Background
|
||||||
|
Loading…
Reference in New Issue
Block a user