From 7f7e8047d4dcf4c6b9bdf6cb99580d2edaa8ed47 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Fri, 17 Mar 2017 19:51:56 +0900 Subject: [PATCH] Don't convert originally taiko hitobjects. --- osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs b/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs index e89ba110be..6533295ce4 100644 --- a/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs +++ b/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs @@ -33,6 +33,11 @@ namespace osu.Game.Modes.Taiko.Beatmaps private TaikoHitObject convertHitObject(HitObject original) { + // Check if this HitObject is already a TaikoHitObject, and return it if so + TaikoHitObject originalTaiko = original as TaikoHitObject; + if (originalTaiko != null) + return originalTaiko; + IHasDistance distanceData = original as IHasDistance; IHasRepeats repeatsData = original as IHasRepeats; IHasEndTime endTimeData = original as IHasEndTime;