1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Move clock retrieval to new correct location

This commit is contained in:
Dean Herbert 2020-10-29 15:28:39 +09:00
parent fa85751425
commit 2671d371da

View File

@ -96,6 +96,10 @@ namespace osu.Game.Rulesets.UI
else if (!frameStableClock.IsPaused.Value)
{
state = PlaybackState.Valid;
if (parentGameplayClock == null)
setClock(); // LoadComplete may not be run yet, but we still want the clock.
proposedTime = parentGameplayClock.CurrentTime;
}
else
@ -123,9 +127,6 @@ namespace osu.Game.Rulesets.UI
private void updateClock(ref double proposedTime)
{
if (parentGameplayClock == null)
setClock(); // LoadComplete may not be run yet, but we still want the clock.
// each update start with considering things in valid state.
state = PlaybackState.Valid;