Fixed Graph/seeking offset

This commit is contained in:
EVAST9919
2017-05-08 01:23:51 +03:00
parent 531f2c410a
commit c3a42ded36
2 changed files with 5 additions and 4 deletions

View File

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