1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

Inline variable

This commit is contained in:
Dean Herbert 2020-10-16 17:35:35 +09:00
parent 05f1017c28
commit e9c4b67cf4

View File

@ -351,10 +351,9 @@ namespace osu.Game.Skinning
case HUDSkinComponents.ScoreText:
case HUDSkinComponents.AccuracyText:
int scoreOverlap = GetConfig<LegacySkinConfiguration.LegacySetting, int>(LegacySkinConfiguration.LegacySetting.ScoreOverlap)?.Value ?? -2;
return new LegacySpriteText(this, scorePrefix)
{
Spacing = new Vector2(-scoreOverlap, 0)
Spacing = new Vector2(-(GetConfig<LegacySkinConfiguration.LegacySetting, int>(LegacySkinConfiguration.LegacySetting.ScoreOverlap)?.Value ?? -2), 0)
};
}