mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Use if statements instead
This commit is contained in:
parent
4ba629773b
commit
bfa02f9233
@ -82,18 +82,14 @@ namespace osu.Game.Screens.SelectV2.Wedge
|
||||
|
||||
private Colour4 getColourByRate(double rate)
|
||||
{
|
||||
switch (rate)
|
||||
{
|
||||
case < 1:
|
||||
if (rate < 1)
|
||||
return colours.ForModType(ModType.DifficultyReduction);
|
||||
|
||||
case > 1:
|
||||
if (rate > 1)
|
||||
return colours.ForModType(ModType.DifficultyIncrease);
|
||||
|
||||
default:
|
||||
return colourProvider.Content2;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user