Move clamps directly to the usages in the conversion algorithm

This commit is contained in:
sw1tchbl4d3
2022-10-10 09:36:18 +02:00
parent e0904e263f
commit f8036658c7
3 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ namespace osu.Game.Beatmaps.Formats
: this()
{
// Note: In stable, the division occurs on floats, but with compiler optimisations turned on actually seems to occur on doubles via some .NET black magic (possibly inlining?).
BpmMultiplier = beatLength < 0 ? Math.Clamp((float)-beatLength, 10, 1000) / 100.0 : 1;
BpmMultiplier = beatLength < 0 ? Math.Clamp((float)-beatLength, 10, 10000) / 100.0 : 1;
GenerateTicks = !double.IsNaN(beatLength);
}