mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Only allow osu! mode maps to be played for now.
This commit is contained in:
parent
209f09df91
commit
0f5614ffa2
@ -107,7 +107,7 @@ namespace osu.Game.GameModes.Play
|
||||
Colour = new Color4(238, 51, 153, 255),
|
||||
Action = () => Push(new Player {
|
||||
BeatmapInfo = selectedBeatmapGroup.SelectedPanel.Beatmap,
|
||||
PlayMode = playMode.Value
|
||||
PreferredPlayMode = playMode.Value
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace osu.Game.GameModes.Play
|
||||
public BeatmapInfo BeatmapInfo;
|
||||
public WorkingBeatmap Beatmap;
|
||||
|
||||
public PlayMode PlayMode;
|
||||
public PlayMode PreferredPlayMode;
|
||||
|
||||
protected override IFrameBasedClock Clock => playerClock;
|
||||
|
||||
@ -80,7 +80,18 @@ namespace osu.Game.GameModes.Play
|
||||
HitRenderer hitRenderer;
|
||||
ScoreOverlay scoreOverlay;
|
||||
|
||||
switch (PlayMode)
|
||||
if (Beatmap.Beatmap.BeatmapInfo?.Mode > PlayMode.Osu)
|
||||
{
|
||||
//we only support osu! mode for now because the hitobject parsing is crappy and needs a refactor.
|
||||
Exit();
|
||||
return;
|
||||
}
|
||||
|
||||
PlayMode usablePlayMode = Beatmap.Beatmap.BeatmapInfo?.Mode > PlayMode.Osu ? Beatmap.Beatmap.BeatmapInfo.Mode : PreferredPlayMode;
|
||||
|
||||
|
||||
|
||||
switch (usablePlayMode)
|
||||
{
|
||||
default:
|
||||
scoreOverlay = new ScoreOverlayOsu();
|
||||
|
Loading…
Reference in New Issue
Block a user