1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 19:23:20 +08:00

Update spm value when spinner not active.

This commit is contained in:
Huo Yaoyuan 2017-10-05 19:23:58 +08:00
parent 3de42ee405
commit 134e1299bb

View File

@ -112,6 +112,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
currentRotation += thisAngle - lastAngle;
RotationAbsolute += Math.Abs(thisAngle - lastAngle);
}
lastAngle = thisAngle;
if (rotations.Count > 0)
{
float rotationFrom = rotations.Peek();
@ -123,9 +126,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
}
SpinsPerMinute = (currentRotation - rotationFrom) / (Time.Current - timeFrom) * 1000 * 60 / 360;
}
}
lastAngle = thisAngle;
rotations.Enqueue(currentRotation);
times.Enqueue(Time.Current);