From 185e98aa14cd906a0d7fe6c5c9bf422b5b505688 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 11 May 2017 12:32:30 +0900 Subject: [PATCH] Add basic column conversion to ManiaBeatmapConverter. --- .../Beatmaps/ManiaBeatmapConverter.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmapConverter.cs b/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmapConverter.cs index 94984146f7..8e4fd83956 100644 --- a/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmapConverter.cs +++ b/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmapConverter.cs @@ -18,10 +18,17 @@ namespace osu.Game.Rulesets.Mania.Beatmaps protected override IEnumerable ConvertHitObject(HitObject original, Beatmap beatmap) { + int columns = (int)Math.Round(beatmap.BeatmapInfo.Difficulty.CircleSize); + + var positionData = original as IHasXPosition; + + float localWDivisor = 512.0f / columns; + int column = Math.Min((int)Math.Floor(positionData.X / localWDivisor), columns - 1); + yield return new Note { StartTime = original.StartTime, - Column = 1, + Column = column, }; } }