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:
parent
a35d9ccc09
commit
f8b5cf8c8e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user