1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:02:55 +08:00

Use RotationAbsolute to calculate spm.

This commit is contained in:
Huo Yaoyuan 2017-10-05 20:08:45 +08:00
parent ee8746b848
commit 29f9c8143d

View File

@ -124,9 +124,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
rotationFrom = rotations.Dequeue();
timeFrom = times.Dequeue();
}
SpinsPerMinute = (currentRotation - rotationFrom) / (Time.Current - timeFrom) * 1000 * 60 / 360;
SpinsPerMinute = (RotationAbsolute - rotationFrom) / (Time.Current - timeFrom) * 1000 * 60 / 360;
}
rotations.Enqueue(currentRotation);
rotations.Enqueue(RotationAbsolute);
times.Enqueue(Time.Current);
if (Complete && updateCompleteTick())