Remove unnecessary check for negative durations

This commit is contained in:
smoogipoo 2020-09-10 20:00:57 +09:00
parent d700ae55fb
commit 74eea8900b

View File

@ -50,12 +50,6 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
List<TaikoDifficultyHitObject> taikoDifficultyHitObjects = new List<TaikoDifficultyHitObject>();
for (int i = 2; i < beatmap.HitObjects.Count; i++)
{
// Check for negative durations
var currentAfterLast = beatmap.HitObjects[i].StartTime > beatmap.HitObjects[i - 1].StartTime;
var lastAfterSecondLast = beatmap.HitObjects[i - 1].StartTime > beatmap.HitObjects[i - 2].StartTime;
if (currentAfterLast && lastAfterSecondLast)
{
taikoDifficultyHitObjects.Add(
new TaikoDifficultyHitObject(
@ -63,7 +57,6 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
)
);
}
}
new StaminaCheeseDetector(taikoDifficultyHitObjects).FindCheese();
return taikoDifficultyHitObjects;