Make BeatmapInfo expose Ruleset instead of PlayMode.

This commit is contained in:
smoogipooo
2017-04-15 05:01:36 +09:00
parent 59bfc7abad
commit a89af273be
8 changed files with 14 additions and 12 deletions

View File

@ -63,7 +63,7 @@ namespace osu.Game.Screens.Play
[BackgroundDependencyLoader]
private void load(AudioManager audio, BeatmapDatabase beatmaps, OsuConfigManager config)
{
if (Beatmap.Beatmap.BeatmapInfo?.Mode > PlayMode.Taiko)
if (Beatmap.Beatmap.BeatmapInfo?.Mode > (int)PlayMode.Taiko)
{
//we only support osu! mode for now because the hitobject parsing is crappy and needs a refactor.
Exit();