From 88f3dc0e02f806805a8b85f91542c9ff070d3001 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 6 Mar 2017 18:49:23 +0900 Subject: [PATCH] Fix a few naming issues. --- osu.Game/Graphics/UserInterface/StarCounter.cs | 2 +- osu.Game/Screens/Tournament/ScrollingTeamContainer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/StarCounter.cs b/osu.Game/Graphics/UserInterface/StarCounter.cs index d603493d38..572b3b1f0d 100644 --- a/osu.Game/Graphics/UserInterface/StarCounter.cs +++ b/osu.Game/Graphics/UserInterface/StarCounter.cs @@ -32,7 +32,7 @@ namespace osu.Game.Graphics.UserInterface private float minStarAlpha => 0.5f; private const float star_size = 20; - private float star_spacing = 4; + private const float star_spacing = 4; private float count; diff --git a/osu.Game/Screens/Tournament/ScrollingTeamContainer.cs b/osu.Game/Screens/Tournament/ScrollingTeamContainer.cs index 35369247ff..0b034e02e7 100644 --- a/osu.Game/Screens/Tournament/ScrollingTeamContainer.cs +++ b/osu.Game/Screens/Tournament/ScrollingTeamContainer.cs @@ -121,10 +121,10 @@ namespace osu.Game.Screens.Tournament continue; } - float offset = Math.Abs(c.Position.X + c.DrawWidth / 2f - DrawWidth / 2f); + float o = Math.Abs(c.Position.X + c.DrawWidth / 2f - DrawWidth / 2f); float lastOffset = Math.Abs(closest.Position.X + closest.DrawWidth / 2f - DrawWidth / 2f); - if (offset < lastOffset) + if (o < lastOffset) closest = c; }