1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 03:53:20 +08:00

Merge branch 'master' of github.com:ppy/osu into general-fixes

# Conflicts:
#	osu.Game/Beatmaps/Beatmap.cs
This commit is contained in:
Thomas Müller 2017-02-17 21:22:34 +01:00
commit 1198705a6f

View File

@ -39,6 +39,9 @@ namespace osu.Game.Beatmaps
ControlPoint timingPoint = null; ControlPoint timingPoint = null;
foreach (var controlPoint in ControlPoints) foreach (var controlPoint in ControlPoints)
// Some beatmaps have the first timingPoint (accidentally) start after the first HitObject(s).
// This null check makes it so that the first ControlPoint that makes a timing change is used as
// the timingPoint for those HitObject(s).
if (controlPoint.Time <= time || timingPoint == null) if (controlPoint.Time <= time || timingPoint == null)
{ {
if (controlPoint.TimingChange) if (controlPoint.TimingChange)
@ -49,6 +52,7 @@ namespace osu.Game.Beatmaps
else overridePoint = controlPoint; else overridePoint = controlPoint;
} }
else break; else break;
}
return timingPoint; return timingPoint;
} }