mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:33:20 +08:00
Fix players potentially not displaying in spectator after restart
This commit is contained in:
parent
feef16b09b
commit
f5a5887669
@ -206,6 +206,11 @@ namespace osu.Game.Online.Spectator
|
|||||||
if (!IsPlaying)
|
if (!IsPlaying)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Disposal could be processed late, leading to EndPlaying potentially being called after a future BeginPlaying call.
|
||||||
|
// Account for this by ensuring the current score matches the score in the provided GameplayState.
|
||||||
|
if (currentScore != state.Score)
|
||||||
|
return;
|
||||||
|
|
||||||
if (pendingFrames.Count > 0)
|
if (pendingFrames.Count > 0)
|
||||||
purgePendingFrames();
|
purgePendingFrames();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user