mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Fix various elements flashing
This commit is contained in:
parent
1dd2a4e368
commit
6a5f0eca18
@ -71,15 +71,24 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
{
|
{
|
||||||
RoomID.Value = other.RoomID;
|
RoomID.Value = other.RoomID;
|
||||||
Name.Value = other.Name;
|
Name.Value = other.Name;
|
||||||
|
|
||||||
|
if (other.Host.Value != null && Host.Value?.Id != other.Host.Value.Id)
|
||||||
Host.Value = other.Host;
|
Host.Value = other.Host;
|
||||||
|
|
||||||
|
if (Status.Value.GetType() != other.Status.Value.GetType())
|
||||||
Status.Value = other.Status;
|
Status.Value = other.Status;
|
||||||
|
|
||||||
Availability.Value = other.Availability;
|
Availability.Value = other.Availability;
|
||||||
|
|
||||||
|
if (Type.Value.GetType() != other.Type.Value.GetType())
|
||||||
Type.Value = other.Type;
|
Type.Value = other.Type;
|
||||||
|
|
||||||
MaxParticipants.Value = other.MaxParticipants;
|
MaxParticipants.Value = other.MaxParticipants;
|
||||||
Participants.Value = other.Participants.Value.ToArray();
|
Participants.Value = other.Participants.Value.ToArray();
|
||||||
EndDate.Value = other.EndDate;
|
EndDate.Value = other.EndDate;
|
||||||
|
|
||||||
Playlist.Clear();
|
// Todo: Temporary, should only remove/add new items (requires framework changes)
|
||||||
|
if (Playlist.Count == 0)
|
||||||
Playlist.AddRange(other.Playlist);
|
Playlist.AddRange(other.Playlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user