Stop progress as soon as we at 100%

This commit is contained in:
EVAST9919
2017-05-11 01:48:46 +03:00
parent 5b469eff69
commit d55c97a08a
2 changed files with 24 additions and 18 deletions

View File

@ -145,8 +145,11 @@ namespace osu.Game.Screens.Play
double progress = ((audioClock?.CurrentTime ?? Time.Current) - firstHitTime) / (lastHitTime - firstHitTime);
bar.UpdatePosition((float)progress);
graph.Progress = (int)(graph.ColumnCount * progress);
if((int)progress * 100 < 100)
{
bar.UpdatePosition((float)progress);
graph.Progress = (int)(graph.ColumnCount * progress);
}
}
}
}