1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 04:19:53 +08:00

Fix ready button remaining enabled for expired items

This commit is contained in:
Dan Balasescu
2021-11-10 18:42:46 +09:00
Unverified
parent 02efe24e39
commit aad4b8ff80
@@ -106,7 +106,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
break;
}
bool enableButton = Room?.State == MultiplayerRoomState.Open && !operationInProgress.Value;
bool enableButton =
Room?.State == MultiplayerRoomState.Open
&& Client.CurrentMatchPlayingItem.Value?.Expired == false
&& !operationInProgress.Value;
// When the local user is the host and spectating the match, the "start match" state should be enabled if any users are ready.
if (localUser?.State == MultiplayerUserState.Spectating)