1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Add spacing between inline comments

This commit is contained in:
Dean Herbert 2020-11-24 13:15:59 +09:00
parent 82640418ba
commit e36b1051c1

View File

@ -125,6 +125,7 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
continue;
float y;
// special-case the min == max case to match LineGraph.
// lerp isn't really well-defined over a zero interval anyway.
if (min == max)
@ -218,6 +219,7 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
// first off, use log10 to calculate the number of digits in the "exact" interval.
var numberOfDigits = Math.Floor(Math.Log10(exactTickInterval));
var tickBase = Math.Pow(10, numberOfDigits);
// then see how the exact tick relates to the power of 10.
var exactTickMultiplier = exactTickInterval / tickBase;