Fix missing QueueMode copies

This commit is contained in:
smoogipoo 2021-10-22 20:14:04 +09:00
parent 95ab82fb58
commit 4e6a02bde9
2 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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