Don't convert originally taiko hitobjects.

This commit is contained in:
smoogipooo 2017-03-17 19:51:56 +09:00
parent 4a85b899c9
commit 7f7e8047d4
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ private List<TaikoHitObject> convertHitObjects(List<HitObject> hitObjects)
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;