mirror of https://github.com/ppy/osu
Fix audio being paused in a spectator session when all players finish playing
This commit is contained in:
parent
21d6556865
commit
fb2d28f7e0
|
@ -177,7 +177,9 @@ private void updatePlayerCatchup()
|
|||
/// </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;
|
||||
|
|
Loading…
Reference in New Issue