mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09: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();
|
updateCatchup();
|
||||||
updateMasterClock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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…
x
Reference in New Issue
Block a user