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

Add extra clamping of endTime to startTime

This commit is contained in:
Dean Herbert 2019-03-13 13:46:41 +09:00
parent a35d9ccc09
commit f8b5cf8c8e

View File

@ -196,12 +196,12 @@ namespace osu.Game.Rulesets.Objects.Legacy
{
// Note: Hold is generated by BMS converts
double endTime = Math.Max(0, Parsing.ParseDouble(split[2]));
double endTime = Math.Max(startTime, Parsing.ParseDouble(split[2]));
if (split.Length > 5 && !string.IsNullOrEmpty(split[5]))
{
string[] ss = split[5].Split(':');
endTime = Parsing.ParseDouble(ss[0]);
endTime = Math.Max(startTime, Parsing.ParseDouble(ss[0]));
readCustomSampleBanks(string.Join(":", ss.Skip(1)), bankInfo);
}