From aad4b8ff809ff49f136dbf006f629d69dd0d860c Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 10 Nov 2021 18:42:46 +0900 Subject: [PATCH] Fix ready button remaining enabled for expired items --- .../OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs b/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs index b854b6d964..ce988e377f 100644 --- a/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs +++ b/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs @@ -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)