mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 19:27:26 +08:00
Merge pull request #13781 from peppy/fix-multi-spec-test-failures
Fix master clock becoming incorrectly paused when all spectator players are too far ahead
This commit is contained in:
commit
2398859b66
@ -130,6 +130,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
// This is a quiet case in which the catchup is done by the master clock, so IsCatchingUp is not set on the player clock.
|
||||
if (timeDelta < -SYNC_TARGET)
|
||||
{
|
||||
// Importantly, set the clock to a non-catchup state. if this isn't done, updateMasterState may incorrectly pause the master clock
|
||||
// when it is required to be running (ie. if all players are ahead of the master).
|
||||
clock.IsCatchingUp = false;
|
||||
clock.Stop();
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user