mirror of https://github.com/ppy/osu
Split conditional for readability
This commit is contained in:
parent
bcf3cd5657
commit
7e2bef3b9f
|
@ -118,7 +118,10 @@ protected override IEnumerable<DifficultyHitObject> CreateDifficultyHitObjects(I
|
|||
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