mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 21:22:56 +08:00
Cleanup CopyFrom()
method
Though the code appears slightly different, it should be semantically equivalent. APIUser equality is implemented on `Id` and `Host` should never transition from non-null to null.
This commit is contained in:
parent
e59ac9e7c8
commit
39504c348d
@ -366,12 +366,8 @@ namespace osu.Game.Online.Rooms
|
|||||||
{
|
{
|
||||||
RoomID = other.RoomID;
|
RoomID = other.RoomID;
|
||||||
Name = other.Name;
|
Name = other.Name;
|
||||||
|
|
||||||
Category = other.Category;
|
Category = other.Category;
|
||||||
|
Host = other.Host;
|
||||||
if (other.Host != null && Host?.Id != other.Host.Id)
|
|
||||||
Host = other.Host;
|
|
||||||
|
|
||||||
ChannelId = other.ChannelId;
|
ChannelId = other.ChannelId;
|
||||||
Status = other.Status;
|
Status = other.Status;
|
||||||
Availability = other.Availability;
|
Availability = other.Availability;
|
||||||
@ -387,7 +383,6 @@ namespace osu.Game.Online.Rooms
|
|||||||
PlaylistItemStats = other.PlaylistItemStats;
|
PlaylistItemStats = other.PlaylistItemStats;
|
||||||
CurrentPlaylistItem = other.CurrentPlaylistItem;
|
CurrentPlaylistItem = other.CurrentPlaylistItem;
|
||||||
AutoSkip = other.AutoSkip;
|
AutoSkip = other.AutoSkip;
|
||||||
|
|
||||||
Playlist = other.Playlist;
|
Playlist = other.Playlist;
|
||||||
RecentParticipants = other.RecentParticipants;
|
RecentParticipants = other.RecentParticipants;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user