From 4e6a02bde9ad6537a3a63060af98839cff726e29 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 22 Oct 2021 20:14:04 +0900 Subject: [PATCH] Fix missing QueueMode copies --- osu.Game/Online/Rooms/Room.cs | 1 + osu.Game/Tests/Visual/Multiplayer/TestMultiplayerClient.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Game/Online/Rooms/Room.cs b/osu.Game/Online/Rooms/Room.cs index 875cdeeb8c..c5f7e240ec 100644 --- a/osu.Game/Online/Rooms/Room.cs +++ b/osu.Game/Online/Rooms/Room.cs @@ -182,6 +182,7 @@ namespace osu.Game.Online.Rooms ParticipantCount.Value = other.ParticipantCount.Value; EndDate.Value = other.EndDate.Value; UserScore.Value = other.UserScore.Value; + QueueMode.Value = other.QueueMode.Value; if (EndDate.Value != null && DateTimeOffset.Now >= EndDate.Value) Status.Value = new RoomStatusEnded(); diff --git a/osu.Game/Tests/Visual/Multiplayer/TestMultiplayerClient.cs b/osu.Game/Tests/Visual/Multiplayer/TestMultiplayerClient.cs index 7606f6c456..45c3f28eab 100644 --- a/osu.Game/Tests/Visual/Multiplayer/TestMultiplayerClient.cs +++ b/osu.Game/Tests/Visual/Multiplayer/TestMultiplayerClient.cs @@ -158,8 +158,8 @@ namespace osu.Game.Tests.Visual.Multiplayer Name = apiRoom.Name.Value, MatchType = apiRoom.Type.Value, PlaylistItemId = lastPlaylistItemId, - // ReSharper disable once ConstantNullCoalescingCondition Incorrect inspection due to lack of nullable in Room.cs. - Password = password ?? string.Empty, + Password = password, + QueueMode = apiRoom.QueueMode.Value }, Users = { localUser }, Host = localUser