mirror of https://github.com/ppy/osu
Fix star counter decrease animation being delayed when current is over displayed star count
This commit is contained in:
parent
6e8d8b977e
commit
7a74eaa2de
|
@ -115,7 +115,7 @@ private void animate(float newValue)
|
|||
|
||||
star.ClearTransforms(true);
|
||||
|
||||
double delay = Math.Max(current <= newValue ? i - current : current - 1 - i, 0) * AnimationDelay;
|
||||
double delay = Math.Max(current <= newValue ? i - current : Math.Min(current, StarCount) - 1 - i, 0) * AnimationDelay;
|
||||
|
||||
using (star.BeginDelayedSequence(delay))
|
||||
star.DisplayAt(getStarScale(i, newValue));
|
||||
|
|
Loading…
Reference in New Issue