1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 06:27:18 +08:00

Seek to the least most-recent frame instead

This commit is contained in:
smoogipoo 2021-06-11 18:39:50 +09:00
parent 263b8ff097
commit 59eda70c12

View File

@ -133,11 +133,13 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
private void onReadyToStart()
{
// Seek the master clock to the gameplay time.
// This is chosen as the first available frame in the players' replays, which matches the seek by each individual SpectatorPlayer.
var startTime = instances.Where(i => i.Score != null)
.SelectMany(i => i.Score.Replay.Frames)
.Select(f => f.Time)
.DefaultIfEmpty(0)
.Max();
.Min();
masterClockContainer.Seek(startTime);
masterClockContainer.Start();