mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Simplify expand number check
This commit is contained in:
parent
d6fb228338
commit
41ca084fa5
@ -126,8 +126,8 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
break;
|
||||
|
||||
case OsuSkinConfiguration.ExpandNumberPiece:
|
||||
decimal legacyVersion = source.GetConfig<LegacySetting, decimal>(LegacySetting.Version)?.Value ?? 1.0m;
|
||||
return SkinUtils.As<TValue>(new BindableBool(legacyVersion < 2.0m));
|
||||
bool expand = source.GetConfig<LegacySetting, decimal>(LegacySetting.Version)?.Value < 2.0m;
|
||||
return SkinUtils.As<TValue>(new BindableBool(expand));
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user