mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 20:45:46 +08:00
Merge pull request #15784 from smoogipoo/fix-mp-resuming
Fix multiplayer starting with own latest picked playlist item rather than the current playlist item
This commit is contained in:
commit
53dea8c606
@ -78,6 +78,13 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
AddAssert("playlist item is not expired", () => Client.APIRoom?.Playlist[1].Expired == false);
|
AddAssert("playlist item is not expired", () => Client.APIRoom?.Playlist[1].Expired == false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestCorrectItemSelectedAfterNewItemAdded()
|
||||||
|
{
|
||||||
|
addItem(() => OtherBeatmap);
|
||||||
|
AddAssert("selected beatmap is initial beatmap", () => Beatmap.Value.BeatmapInfo.OnlineID == InitialBeatmap.OnlineID);
|
||||||
|
}
|
||||||
|
|
||||||
private void addItem(Func<BeatmapInfo> beatmap)
|
private void addItem(Func<BeatmapInfo> beatmap)
|
||||||
{
|
{
|
||||||
AddStep("click edit button", () =>
|
AddStep("click edit button", () =>
|
||||||
|
@ -302,6 +302,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
|||||||
public override void OnResuming(IScreen last)
|
public override void OnResuming(IScreen last)
|
||||||
{
|
{
|
||||||
base.OnResuming(last);
|
base.OnResuming(last);
|
||||||
|
updateWorkingBeatmap();
|
||||||
beginHandlingTrack();
|
beginHandlingTrack();
|
||||||
Scheduler.AddOnce(UpdateMods);
|
Scheduler.AddOnce(UpdateMods);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user