mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 14:12:55 +08:00
Dont control master clock from sync manager
This commit is contained in:
parent
1c67ef7c91
commit
75d825c85c
@ -63,7 +63,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
}
|
||||
|
||||
updateCatchup();
|
||||
updateMasterClock();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -133,21 +132,5 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the master clock's running state.
|
||||
/// </summary>
|
||||
private void updateMasterClock()
|
||||
{
|
||||
bool anyInSync = playerClocks.Any(s => !s.IsCatchingUp);
|
||||
|
||||
if (MasterClock.IsRunning != anyInSync)
|
||||
{
|
||||
if (anyInSync)
|
||||
MasterClock.Start();
|
||||
else
|
||||
MasterClock.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user