1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Removed unneeded vars

This commit is contained in:
Adonais Romero González 2016-10-13 18:07:06 -05:00 committed by GitHub
parent 69621eb6d3
commit 0deb5b4e22

View File

@ -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);
}
}