Rename incorrectly named variable (radius is not diameter)

This commit is contained in:
Dean Herbert 2022-05-06 17:51:51 +09:00
parent 37cbc79283
commit 118e58888b

View File

@ -49,15 +49,15 @@ namespace osu.Game.Screens.Edit.Compose.Components
for (int i = 0; i < requiredCircles; i++)
{
float radius = (i + 1) * DistanceBetweenTicks * 2;
float diameter = (i + 1) * DistanceBetweenTicks * 2;
AddInternal(new CircularProgress
{
Origin = Anchor.Centre,
Position = StartPosition,
Current = { Value = 1 },
Size = new Vector2(radius),
InnerRadius = 4 * 1f / radius,
Size = new Vector2(diameter),
InnerRadius = 4 * 1f / diameter,
Colour = GetColourForIndexFromPlacement(i)
});
}