1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 12:42:31 +08:00

Change double to int.

This commit is contained in:
Dean Herbert
2016-11-28 22:46:52 +09:00
Unverified
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;