1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 09:03:00 +08:00

Fix post-rebase errors.

This commit is contained in:
smoogipooo 2017-04-18 09:00:53 +09:00
parent 04973ae65e
commit 786446354e
3 changed files with 3 additions and 5 deletions

View File

@ -7,10 +7,8 @@ using OpenTK;
using OpenTK.Graphics;
using osu.Game.Beatmaps.Formats;
using osu.Game.Tests.Resources;
using osu.Game.Modes.Objects.Legacy;
using System.Linq;
using osu.Game.Audio;
using osu.Game.Modes.Objects;
using osu.Game.Modes.Objects.Types;
namespace osu.Game.Tests.Beatmaps.Formats

View File

@ -87,7 +87,7 @@ namespace osu.Game.Beatmaps.Formats
case @"Mode":
beatmap.BeatmapInfo.RulesetID = int.Parse(val);
switch (beatmap.BeatmapInfo.Mode)
switch (beatmap.BeatmapInfo.RulesetID)
{
case 0:
parser = new Modes.Objects.Legacy.Osu.HitObjectParser();

View File

@ -80,13 +80,13 @@ namespace osu.Game.Screens.Play
try
{
// Try using the preferred user ruleset
ruleset = osu == null ? Beatmap.BeatmapInfo.Ruleset : osu.Ruleset;
ruleset = osu == null ? Beatmap.BeatmapInfo.Ruleset.CreateInstance() : osu.Ruleset.Value.CreateInstance();
HitRenderer = ruleset.CreateHitRendererWith(Beatmap);
}
catch (BeatmapInvalidForModeException)
{
// Default to the beatmap ruleset
ruleset = Beatmap.BeatmapInfo.Ruleset;
ruleset = Beatmap.BeatmapInfo.Ruleset.CreateInstance();
HitRenderer = ruleset.CreateHitRendererWith(Beatmap);
}
}