Only apply taiko LegacyTimingInfo to LegacyBeatmaps.

This commit is contained in:
Dean Herbert 2017-04-05 16:31:15 +09:00
parent 87b8f8ef6e
commit 9ac18230cc
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -9,6 +9,7 @@ using osu.Game.Modes.Taiko.Objects;
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps.Legacy;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
@ -42,7 +43,7 @@ namespace osu.Game.Modes.Taiko.Beatmaps
{
return new Beatmap<TaikoHitObject>(original)
{
TimingInfo = new LegacyTimingInfo(original.TimingInfo),
TimingInfo = original is LegacyBeatmap ? new LegacyTimingInfo(original.TimingInfo) : original.TimingInfo,
HitObjects = original.HitObjects.SelectMany(h => convertHitObject(h, original)).ToList()
};
}