mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Move ternary inside Math.Max()
This commit is contained in:
parent
8169d1ac80
commit
6e8d8b977e
@ -115,7 +115,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
star.ClearTransforms(true);
|
star.ClearTransforms(true);
|
||||||
|
|
||||||
double delay = (current <= newValue ? Math.Max(i - current, 0) : Math.Max(current - 1 - i, 0)) * AnimationDelay;
|
double delay = Math.Max(current <= newValue ? i - current : current - 1 - i, 0) * AnimationDelay;
|
||||||
|
|
||||||
using (star.BeginDelayedSequence(delay))
|
using (star.BeginDelayedSequence(delay))
|
||||||
star.DisplayAt(getStarScale(i, newValue));
|
star.DisplayAt(getStarScale(i, newValue));
|
||||||
|
Loading…
Reference in New Issue
Block a user