mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 00:23:21 +08:00
Merge branch 'master' of github.com:ppy/osu into general-fixes
# Conflicts: # osu.Game/Beatmaps/Beatmap.cs
This commit is contained in:
commit
1198705a6f
@ -39,6 +39,9 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
ControlPoint timingPoint = null;
|
||||
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.TimingChange)
|
||||
@ -49,6 +52,7 @@ namespace osu.Game.Beatmaps
|
||||
else overridePoint = controlPoint;
|
||||
}
|
||||
else break;
|
||||
}
|
||||
|
||||
return timingPoint;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user