mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
use constant value
This commit is contained in:
parent
cda97a61fa
commit
69ada11f41
@ -170,7 +170,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
public void UpdateBallPosition(float mouseXPosition)
|
||||
{
|
||||
int duration = 200;
|
||||
const int duration = 200;
|
||||
int index = calculateIndex(mouseXPosition);
|
||||
Vector2 position = calculateBallPosition(index);
|
||||
movingBall.MoveToY(position.Y, duration, Easing.OutQuint);
|
||||
|
Loading…
Reference in New Issue
Block a user