Use float type for progress value

This commit is contained in:
EVAST9919
2017-05-08 19:42:36 +03:00
parent 4b5e24cc36
commit 17d1ecb8f5
2 changed files with 7 additions and 12 deletions

View File

@ -141,12 +141,12 @@ namespace osu.Game.Screens.Play
return;
double currentTime = (AudioClock?.CurrentTime ?? Time.Current) - firstHitTime;
double progress = currentTime / (lastHitTime - firstHitTime);
float progress = (float)(currentTime / (lastHitTime - firstHitTime));
bar.UpdatePosition((float)progress);
bar.UpdatePosition(progress);
graph.Progress = (int)(graph.ColumnCount * progress);
info.Progress = (int)(progress * 100);
info.Progress = progress;
info.CurrentTime = currentTime;
}
}