mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
removed useless variable
This commit is contained in:
parent
ea28a9f7ce
commit
531f2c410a
@ -139,16 +139,15 @@ namespace osu.Game.Screens.Play
|
|||||||
if (objects == null)
|
if (objects == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
double drawableCurrentTime = AudioClock?.CurrentTime ?? Time.Current;
|
double currentTime = (AudioClock?.CurrentTime ?? Time.Current) - firstHitTime;
|
||||||
double songCurrentTime = drawableCurrentTime - firstHitTime;
|
double progress = currentTime / lastHitTime;
|
||||||
double progress = songCurrentTime / lastHitTime;
|
|
||||||
|
|
||||||
bar.UpdatePosition((float)progress);
|
bar.UpdatePosition((float)progress);
|
||||||
graph.Progress = (int)(graph.ColumnCount * progress);
|
graph.Progress = (int)(graph.ColumnCount * progress);
|
||||||
|
|
||||||
info.Progress = (int)(progress * 100);
|
info.Progress = (int)(progress * 100);
|
||||||
info.TimeCurrent = songCurrentTime;
|
info.TimeCurrent = currentTime;
|
||||||
info.TimeLeft = lastHitTime - firstHitTime - songCurrentTime;
|
info.TimeLeft = lastHitTime - firstHitTime - currentTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user