mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 17:02:57 +08:00
Remove unnecessary check for negative durations
This commit is contained in:
parent
d700ae55fb
commit
74eea8900b
@ -51,18 +51,11 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
|
|||||||
|
|
||||||
for (int i = 2; i < beatmap.HitObjects.Count; i++)
|
for (int i = 2; i < beatmap.HitObjects.Count; i++)
|
||||||
{
|
{
|
||||||
// Check for negative durations
|
taikoDifficultyHitObjects.Add(
|
||||||
var currentAfterLast = beatmap.HitObjects[i].StartTime > beatmap.HitObjects[i - 1].StartTime;
|
new TaikoDifficultyHitObject(
|
||||||
var lastAfterSecondLast = beatmap.HitObjects[i - 1].StartTime > beatmap.HitObjects[i - 2].StartTime;
|
beatmap.HitObjects[i], beatmap.HitObjects[i - 1], beatmap.HitObjects[i - 2], clockRate, i
|
||||||
|
)
|
||||||
if (currentAfterLast && lastAfterSecondLast)
|
);
|
||||||
{
|
|
||||||
taikoDifficultyHitObjects.Add(
|
|
||||||
new TaikoDifficultyHitObject(
|
|
||||||
beatmap.HitObjects[i], beatmap.HitObjects[i - 1], beatmap.HitObjects[i - 2], clockRate, i
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new StaminaCheeseDetector(taikoDifficultyHitObjects).FindCheese();
|
new StaminaCheeseDetector(taikoDifficultyHitObjects).FindCheese();
|
||||||
|
Loading…
Reference in New Issue
Block a user