mirror of
https://github.com/ppy/osu
synced 2024-12-11 01:19:26 +00:00
Split conditional for readability
This commit is contained in:
parent
bcf3cd5657
commit
7e2bef3b9f
@ -118,7 +118,10 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
|
||||
for (int i = 2; i < beatmap.HitObjects.Count; i++)
|
||||
{
|
||||
// Check for negative durations
|
||||
if (beatmap.HitObjects[i].StartTime > beatmap.HitObjects[i - 1].StartTime && beatmap.HitObjects[i - 1].StartTime > beatmap.HitObjects[i - 2].StartTime)
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user