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

Remove unnecessary max operation

This commit is contained in:
Salman Ahmed 2024-02-29 01:01:55 +03:00
parent ce994a7a73
commit c3a7e99849

View File

@ -61,7 +61,7 @@ namespace osu.Game.Screens.Play.HUD
int digitsRequiredForDisplayCount = Math.Max(RequiredDisplayDigits.Value, getDigitsRequiredForDisplayCount());
if (digitsRequiredForDisplayCount != scoreText.WireframeTemplate.Length)
scoreText.WireframeTemplate = new string('#', Math.Max(RequiredDisplayDigits.Value, digitsRequiredForDisplayCount));
scoreText.WireframeTemplate = new string('#', digitsRequiredForDisplayCount);
}
private int getDigitsRequiredForDisplayCount()