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:
parent
fa85751425
commit
2671d371da
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user