mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
Don't reset ready state if the map is locally available
This commit is contained in:
parent
be91f54349
commit
791cbb7f03
@ -330,7 +330,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
client.ChangeBeatmapAvailability(availability.NewValue);
|
client.ChangeBeatmapAvailability(availability.NewValue);
|
||||||
|
|
||||||
// while this flow is handled server-side, this covers the edge case of the local user being in a ready state and then deleting the current beatmap.
|
// while this flow is handled server-side, this covers the edge case of the local user being in a ready state and then deleting the current beatmap.
|
||||||
if (client.LocalUser?.State == MultiplayerUserState.Ready)
|
if (availability.NewValue != Online.Rooms.BeatmapAvailability.LocallyAvailable()
|
||||||
|
&& client.LocalUser?.State == MultiplayerUserState.Ready)
|
||||||
client.ChangeState(MultiplayerUserState.Idle);
|
client.ChangeState(MultiplayerUserState.Idle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user