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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user