mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 05:53:10 +08:00
Update addItem() implementation
This commit is contained in:
parent
85d3b70d8c
commit
5be74af8fe
@ -430,13 +430,12 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
{
|
{
|
||||||
Debug.Assert(Room != null);
|
Debug.Assert(Room != null);
|
||||||
|
|
||||||
// Add the item to the list first in order to compute gameplay order.
|
|
||||||
item.ID = long.MaxValue;
|
|
||||||
serverSidePlaylist.Add(item);
|
|
||||||
await updatePlaylistOrder(Room).ConfigureAwait(false);
|
|
||||||
|
|
||||||
item.ID = ++lastPlaylistItemId;
|
item.ID = ++lastPlaylistItemId;
|
||||||
|
|
||||||
|
serverSidePlaylist.Add(item);
|
||||||
await ((IMultiplayerClient)this).PlaylistItemAdded(item).ConfigureAwait(false);
|
await ((IMultiplayerClient)this).PlaylistItemAdded(item).ConfigureAwait(false);
|
||||||
|
|
||||||
|
await updatePlaylistOrder(Room).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task updateCurrentItem(MultiplayerRoom room, bool notify = true)
|
private async Task updateCurrentItem(MultiplayerRoom room, bool notify = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user