mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Fixed update condition
This commit is contained in:
@ -74,8 +74,9 @@ namespace osu.Game.Screens.Play
|
||||
base.Update();
|
||||
|
||||
double songCurrentTime = AudioClock.CurrentTime - startTime;
|
||||
int currentPercent = (int)(songCurrentTime / (endTime - startTime) * 100);
|
||||
|
||||
if(songCurrentTime < endTime - startTime)
|
||||
if (currentPercent <= 100)
|
||||
{
|
||||
int currentSecond = TimeSpan.FromMilliseconds(songCurrentTime).Seconds;
|
||||
|
||||
@ -92,8 +93,6 @@ namespace osu.Game.Screens.Play
|
||||
timeLeft.Text = @"-" + TimeSpan.FromMilliseconds(endTime - AudioClock.CurrentTime).ToString(@"m\:ss");
|
||||
}
|
||||
|
||||
int currentPercent = (int)(songCurrentTime / (endTime - startTime) * 100) + 1;
|
||||
|
||||
if (currentPercent != previousPercent)
|
||||
{
|
||||
previousPercent = currentPercent;
|
||||
|
Reference in New Issue
Block a user