mirror of https://github.com/ppy/osu
Line widths should not receive scale factor
This commit is contained in:
parent
0a2b585c65
commit
a41ac50e2f
|
@ -74,7 +74,7 @@ private void flushPendingLines()
|
||||||
switch (pair.Key)
|
switch (pair.Key)
|
||||||
{
|
{
|
||||||
case "ColumnLineWidth":
|
case "ColumnLineWidth":
|
||||||
parseArrayValue(pair.Value, currentConfig.ColumnLineWidth);
|
parseArrayValue(pair.Value, currentConfig.ColumnLineWidth, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "ColumnSpacing":
|
case "ColumnSpacing":
|
||||||
|
@ -124,7 +124,7 @@ private void flushPendingLines()
|
||||||
pendingLines.Clear();
|
pendingLines.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void parseArrayValue(string value, float[] output)
|
private void parseArrayValue(string value, float[] output, bool applyScaleFactor = true)
|
||||||
{
|
{
|
||||||
string[] values = value.Split(',');
|
string[] values = value.Split(',');
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ private void parseArrayValue(string value, float[] output)
|
||||||
if (i >= output.Length)
|
if (i >= output.Length)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
output[i] = float.Parse(values[i], CultureInfo.InvariantCulture) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
|
output[i] = float.Parse(values[i], CultureInfo.InvariantCulture) * (applyScaleFactor ? LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue