mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Stop progress as soon as we at 100%
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user