mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 06:39:53 +08:00
Fix audio being paused in a spectator session when all players finish playing
This commit is contained in:
@@ -177,7 +177,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
/// </summary>
|
||||
private void updateMasterState()
|
||||
{
|
||||
MasterClockState newState = playerClocks.Any(s => !s.IsCatchingUp) ? MasterClockState.Synchronised : MasterClockState.TooFarAhead;
|
||||
// Clocks are removed as players complete the beatmap.
|
||||
// Once there are no clocks we want to make sure the track plays out to the end.
|
||||
MasterClockState newState = playerClocks.Count == 0 || playerClocks.Any(s => !s.IsCatchingUp) ? MasterClockState.Synchronised : MasterClockState.TooFarAhead;
|
||||
|
||||
if (masterState == newState)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user