mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Handle case where local user tries to change beatmap while not the host
This commit is contained in:
@ -402,6 +402,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
if (!this.IsCurrentScreen())
|
if (!this.IsCurrentScreen())
|
||||||
return;
|
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));
|
this.Push(new MultiplayerMatchSongSelect(beatmap, ruleset));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user