Ensure there is enough time before the first object in osu! (roughly following osu-stable specs)

This commit is contained in:
Dean Herbert 2019-04-24 12:35:34 +09:00
parent a3e7ec0a14
commit e69963e60e
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Input;
@ -61,7 +62,7 @@ public override double GameplayStartTime
get
{
var first = (OsuHitObject)Objects.First();
return first.StartTime - first.TimePreempt;
return first.StartTime - Math.Max(2000, first.TimePreempt);
}
}
}