1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 14:13:18 +08:00

Fix incorrect global beatmap with availability changes

This commit is contained in:
Dan Balasescu 2021-12-11 23:08:17 +09:00
parent 99cd36d2f6
commit d6c08fae48
2 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,7 @@ using osu.Framework.Graphics.Shapes;
using osu.Framework.Screens;
using osu.Game.Audio;
using osu.Game.Beatmaps;
using osu.Game.Online;
using osu.Game.Online.Rooms;
using osu.Game.Overlays;
using osu.Game.Overlays.Mods;
@ -378,6 +379,12 @@ namespace osu.Game.Screens.OnlinePlay.Match
protected virtual void UpdateWorkingBeatmap()
{
if (BeatmapAvailability.Value.State != DownloadState.LocallyAvailable)
{
Beatmap.Value = beatmapManager.GetWorkingBeatmap(null);
return;
}
var beatmap = SelectedItem.Value?.Beatmap.Value;
// Retrieve the corresponding local beatmap, since we can't directly use the playlist's beatmap info

View File

@ -327,6 +327,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
if (client.LocalUser?.State == MultiplayerUserState.Ready)
client.ChangeState(MultiplayerUserState.Idle);
}
UpdateWorkingBeatmap();
}
protected override void UpdateWorkingBeatmap()