mirror of
https://github.com/ppy/osu
synced 2025-01-19 20:40:52 +00:00
Add comment about how starting gameplay works
This commit is contained in:
parent
3915b8e414
commit
0224947de0
@ -154,10 +154,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
// We'll arrive here in a Loaded state, and we need to let the server know that we're ready to start.
|
||||
// 2. Via the server forcefully starting gameplay because players have been hanging out in PlayerLoader for too long.
|
||||
// We'll arrive here in a Playing state, and we should neither show the loading spinner nor tell the server that we're ready to start (gameplay has already started).
|
||||
//
|
||||
// The base call is blocked here because in both cases gameplay is started only when the server says so via onGameplayStarted().
|
||||
|
||||
if (client.LocalUser?.State == MultiplayerUserState.Loaded)
|
||||
{
|
||||
// block base call, but let the server know we are ready to start.
|
||||
loadingDisplay.Show();
|
||||
client.ChangeState(MultiplayerUserState.ReadyForGameplay);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user