diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs
index 94678a9dde..102df75420 100644
--- a/osu.Game/OsuGame.cs
+++ b/osu.Game/OsuGame.cs
@@ -75,10 +75,10 @@ namespace osu.Game
{
get
{
- Screen s = screenStack;
- while (s != null && !(s is Intro))
- s = s.ChildScreen;
- return s as Intro;
+ Screen screen = screenStack;
+ while (screen != null && !(screen is Intro))
+ screen = screen.ChildScreen;
+ return screen as Intro;
}
}
@@ -126,8 +126,8 @@ namespace osu.Game
/// Whether the toolbar should also be hidden.
public void CloseAllOverlays(bool toolbar = true)
{
- foreach (var o in overlays)
- o.State = Visibility.Hidden;
+ foreach (var overlay in overlays)
+ overlay.State = Visibility.Hidden;
if (toolbar) Toolbar.State = Visibility.Hidden;
}
@@ -244,7 +244,7 @@ namespace osu.Game
/// The beatmap to show.
public void ShowBeatmap(int beatmapId) => beatmapSetOverlay.FetchAndShowBeatmap(beatmapId);
- protected void LoadScore(Score s)
+ protected void LoadScore(Score score)
{
scoreLoad?.Cancel();
@@ -252,18 +252,18 @@ namespace osu.Game
if (menu == null)
{
- scoreLoad = Schedule(() => LoadScore(s));
+ scoreLoad = Schedule(() => LoadScore(score));
return;
}
if (!menu.IsCurrentScreen)
{
menu.MakeCurrent();
- this.Delay(500).Schedule(() => LoadScore(s), out scoreLoad);
+ this.Delay(500).Schedule(() => LoadScore(score), out scoreLoad);
return;
}
- if (s.Beatmap == null)
+ if (score.Beatmap == null)
{
notifications.Post(new SimpleNotification
{
@@ -273,12 +273,12 @@ namespace osu.Game
return;
}
- ruleset.Value = s.Ruleset;
+ ruleset.Value = score.Ruleset;
- Beatmap.Value = BeatmapManager.GetWorkingBeatmap(s.Beatmap);
- Beatmap.Value.Mods.Value = s.Mods;
+ Beatmap.Value = BeatmapManager.GetWorkingBeatmap(score.Beatmap);
+ Beatmap.Value.Mods.Value = score.Mods;
- menu.Push(new PlayerLoader(new ReplayPlayer(s.Replay)));
+ menu.Push(new PlayerLoader(new ReplayPlayer(score.Replay)));
}
protected override void Dispose(bool isDisposing)