mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Change createSampleC ontrolPointFor fallback from -1 to 1
This commit is contained in:
parent
8299a0b9c8
commit
730f198c45
@ -323,7 +323,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
int volume = samples.Max(o => o.Volume);
|
int volume = samples.Max(o => o.Volume);
|
||||||
int customIndex = samples.Any(o => o is ConvertHitObjectParser.LegacyHitSampleInfo)
|
int customIndex = samples.Any(o => o is ConvertHitObjectParser.LegacyHitSampleInfo)
|
||||||
? samples.OfType<ConvertHitObjectParser.LegacyHitSampleInfo>().Max(o => o.CustomSampleBank)
|
? samples.OfType<ConvertHitObjectParser.LegacyHitSampleInfo>().Max(o => o.CustomSampleBank)
|
||||||
: -1;
|
: 1;
|
||||||
|
|
||||||
return new LegacyBeatmapDecoder.LegacySampleControlPoint { Time = time, SampleVolume = volume, CustomSampleBank = customIndex };
|
return new LegacyBeatmapDecoder.LegacySampleControlPoint { Time = time, SampleVolume = volume, CustomSampleBank = customIndex };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user