mirror of
https://github.com/ppy/osu
synced 2024-12-26 17:02:59 +00:00
Remove unnecessary check for negative durations
This commit is contained in:
parent
d700ae55fb
commit
74eea8900b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user