Fix control points being flushed too late

This commit is contained in:
smoogipoo
2019-10-30 18:02:18 +09:00
parent 45af796943
commit cf2d885099
3 changed files with 23 additions and 3 deletions

View File

@ -411,15 +411,15 @@ namespace osu.Game.Beatmaps.Formats
private void addControlPoint(double time, ControlPoint point, bool timingChange)
{
if (time != pendingControlPointsTime)
flushPendingPoints();
if (timingChange)
{
beatmap.ControlPointInfo.Add(time, point);
return;
}
if (time != pendingControlPointsTime)
flushPendingPoints();
pendingControlPoints.Add(point);
pendingControlPointsTime = time;
}