mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Add extra clamping of endTime to startTime
This commit is contained in:
@ -196,12 +196,12 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
{
|
{
|
||||||
// Note: Hold is generated by BMS converts
|
// 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]))
|
if (split.Length > 5 && !string.IsNullOrEmpty(split[5]))
|
||||||
{
|
{
|
||||||
string[] ss = split[5].Split(':');
|
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);
|
readCustomSampleBanks(string.Join(":", ss.Skip(1)), bankInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user