From 293ea6fbd7490c19cf671de639a7468f1aa82387 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Mon, 3 Apr 2017 15:24:30 +0900 Subject: [PATCH] Fix up beatmap converter error. --- osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs b/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs index 97acdeb3e6..805666d5cf 100644 --- a/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs +++ b/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs @@ -19,6 +19,11 @@ namespace osu.Game.Modes.Taiko.Beatmaps private const float legacy_velocity_scale = 1.4f; private const float bash_convert_factor = 1.65f; + /// + /// Drum roll distance that results in a duration of 1 speed-adjusted beat length. + /// + private const float base_distance = 100; + public Beatmap Convert(Beatmap original) { if (original is LegacyBeatmap) @@ -48,7 +53,7 @@ namespace osu.Game.Modes.Taiko.Beatmaps if (distanceData != null) { - double sv = beatmap.TimingInfo.SliderVelocityAt(obj.StartTime) * beatmap.BeatmapInfo.Difficulty.SliderMultiplier; + double sv = base_distance * beatmap.BeatmapInfo.Difficulty.SliderMultiplier * beatmap.TimingInfo.BeatLengthAt(obj.StartTime) / 1000; double l = distanceData.Distance * legacy_velocity_scale; double v = sv * legacy_velocity_scale;