From 22128f158cfb774aa284616ed2849f111ccae4c1 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 18 May 2017 12:10:01 +0900 Subject: [PATCH] Fix a few errors. --- osu.Game.Rulesets.Mania/Beatmaps/DistanceObjectConversion.cs | 2 ++ osu.Game.Rulesets.Mania/Beatmaps/LegacyConverter.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Mania/Beatmaps/DistanceObjectConversion.cs b/osu.Game.Rulesets.Mania/Beatmaps/DistanceObjectConversion.cs index c775c189e1..5df4279cca 100644 --- a/osu.Game.Rulesets.Mania/Beatmaps/DistanceObjectConversion.cs +++ b/osu.Game.Rulesets.Mania/Beatmaps/DistanceObjectConversion.cs @@ -339,6 +339,8 @@ namespace osu.Game.Rulesets.Mania.Beatmaps add(newRow, holdColumn, startTime, separationTime * repeatCount); // Todo: Complete + + return newRow; } private void add(ObjectRow row, int column, double startTime, double endTime, int siblings = 1) diff --git a/osu.Game.Rulesets.Mania/Beatmaps/LegacyConverter.cs b/osu.Game.Rulesets.Mania/Beatmaps/LegacyConverter.cs index ebc6ed2dcf..7c8e58862b 100644 --- a/osu.Game.Rulesets.Mania/Beatmaps/LegacyConverter.cs +++ b/osu.Game.Rulesets.Mania/Beatmaps/LegacyConverter.cs @@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps private readonly Beatmap beatmap; - public LegacyConverter(ObjectRow previousrow, Beatmap beatmap) + public LegacyConverter(Beatmap beatmap) { this.beatmap = beatmap; @@ -118,7 +118,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps if (conversion == null) yield break; - foreach (ManiaHitObject obj in conversion.GenerateConversion()) + foreach (ManiaHitObject obj in conversion.GenerateConversion().HitObjects) yield return obj; }