1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 03:37:35 +08:00

Don't convert originally taiko hitobjects.

This commit is contained in:
smoogipooo 2017-03-17 19:51:56 +09:00
parent 4a85b899c9
commit 7f7e8047d4

View File

@ -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;