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

@ -51,18 +51,11 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
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(
beatmap.HitObjects[i], beatmap.HitObjects[i - 1], beatmap.HitObjects[i - 2], clockRate, i
)
);
}
taikoDifficultyHitObjects.Add(
new TaikoDifficultyHitObject(
beatmap.HitObjects[i], beatmap.HitObjects[i - 1], beatmap.HitObjects[i - 2], clockRate, i
)
);
}
new StaminaCheeseDetector(taikoDifficultyHitObjects).FindCheese();