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

Use if statements instead

This commit is contained in:
Joseph Madamba 2024-08-19 21:23:35 -07:00
parent 4ba629773b
commit bfa02f9233

View File

@ -82,17 +82,13 @@ namespace osu.Game.Screens.SelectV2.Wedge
private Colour4 getColourByRate(double rate)
{
switch (rate)
{
case < 1:
return colours.ForModType(ModType.DifficultyReduction);
if (rate < 1)
return colours.ForModType(ModType.DifficultyReduction);
case > 1:
return colours.ForModType(ModType.DifficultyIncrease);
if (rate > 1)
return colours.ForModType(ModType.DifficultyIncrease);
default:
return colourProvider.Content2;
}
return colourProvider.Content2;
}
protected override void Dispose(bool isDisposing)