mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 11:23:00 +08:00
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 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void updateMasterState()
|
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)
|
if (masterState == newState)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user