From 0deb5b4e227d0ea4b916cafefb93032361216339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adonais=20Romero=20Gonz=C3=A1lez?= Date: Thu, 13 Oct 2016 18:07:06 -0500 Subject: [PATCH] Removed unneeded vars --- osu.Game/Graphics/UserInterface/StarCounter.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/StarCounter.cs b/osu.Game/Graphics/UserInterface/StarCounter.cs index 843338e572..fcf283d9c1 100644 --- a/osu.Game/Graphics/UserInterface/StarCounter.cs +++ b/osu.Game/Graphics/UserInterface/StarCounter.cs @@ -169,25 +169,23 @@ namespace osu.Game.Graphics.UserInterface { if (currentValue < newValue) { - int currentValueFloor = (int)currentValue; for (int i = 0; i < MaxStars; i++) { stars[i].DelayReset(); stars[i].ClearTransformations(); - if (i > currentValueFloor) + if (i > currentValue) stars[i].Delay((i - currentValue) * AnimationDelay); transformStar(i, newValue); } } else { - int currentValueCeiling = (int)Math.Ceiling(currentValue); for (int i = MaxStars - 1; i >= 0; i--) { stars[i].DelayReset(); stars[i].ClearTransformations(); - if (i < currentValueCeiling) - stars[i].Delay((currentValue - i) * AnimationDelay); + if (i < (currentValue - 1)) + stars[i].Delay((currentValue - 1 - i) * AnimationDelay); transformStar(i, newValue); } }