mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Change double to int.
This commit is contained in:
parent
ce13d813b7
commit
9114c9dec4
@ -60,7 +60,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
|
||||
double t = (Time.Current - slider.StartTime) / slider.Duration;
|
||||
if (slider.RepeatCount > 1)
|
||||
{
|
||||
double currentRepeat = (int)(t * slider.RepeatCount);
|
||||
int currentRepeat = (int)(t * slider.RepeatCount);
|
||||
t = (t * slider.RepeatCount) % 1;
|
||||
if (currentRepeat % 2 == 1)
|
||||
t = 1 - t;
|
||||
|
Loading…
Reference in New Issue
Block a user