mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 06:29:52 +08:00
Allow room category to be copied even if Spotlight
I remember that this conditional copy was added to support making copies of spotlight rooms without carrying across the `Spotlight` type, but in testing this is already handled web side to the point that it's not required. The rationale for allowing the copy is that this method is used for tests, where it was not being copied correctly from the input as expected (used at https://github.com/ppy/osu/blob/bdc3b76df0b58406796e2b08db13be7f2140fa7e/osu.Game/Tests/Visual/OnlinePlay/TestRoomManager.cs#L38).
This commit is contained in:
@@ -168,8 +168,7 @@ namespace osu.Game.Online.Rooms
|
||||
RoomID.Value = other.RoomID.Value;
|
||||
Name.Value = other.Name.Value;
|
||||
|
||||
if (other.Category.Value != RoomCategory.Spotlight)
|
||||
Category.Value = other.Category.Value;
|
||||
Category.Value = other.Category.Value;
|
||||
|
||||
if (other.Host.Value != null && Host.Value?.Id != other.Host.Value.Id)
|
||||
Host.Value = other.Host.Value;
|
||||
|
||||
Reference in New Issue
Block a user