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:
parent
ce994a7a73
commit
c3a7e99849
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user