mirror of
https://github.com/ppy/osu
synced 2025-02-09 06:36:56 +00:00
Handle case where local user tries to change beatmap while not the host
This commit is contained in:
parent
7c59040082
commit
d332fd2414
@ -402,6 +402,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
if (!this.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
if (!client.IsHost)
|
||||
{
|
||||
// todo: should handle this when the request queue is implemented.
|
||||
// if we decide that the presentation should exit the user from the multiplayer game, the PresentBeatmap
|
||||
// flow may need to change to support an "unable to present" return value.
|
||||
return;
|
||||
}
|
||||
|
||||
this.Push(new MultiplayerMatchSongSelect(beatmap, ruleset));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user