Add comment explaining why the branch is necessary

This commit is contained in:
Shadoxfix
2017-02-17 18:17:18 +01:00
parent 72306e8757
commit 7a45ea58b2

View File

@ -49,6 +49,8 @@ namespace osu.Game.Beatmaps
} }
else overridePoint = controlPoint; else overridePoint = controlPoint;
} }
// Some beatmaps have the first timingPoint (accidentally) start after the first HitObject(s).
// This branch makes it so that the first ControlPoint that makes a timing change is used as the timingPoint for the HitObject(s).
else if (timingPoint == null && controlPoint.TimingChange) else if (timingPoint == null && controlPoint.TimingChange)
{ {
timingPoint = controlPoint; timingPoint = controlPoint;