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:
parent
99cd36d2f6
commit
d6c08fae48
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user