mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 07:07:45 +08:00
Use if statements instead
This commit is contained in:
parent
4ba629773b
commit
bfa02f9233
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user