mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
switch -> if.
This commit is contained in:
parent
2964c04c14
commit
ec6267c5b2
@ -88,15 +88,10 @@ namespace osu.Game.Graphics.UserInterface
|
||||
lastSampleTime = Clock.CurrentTime;
|
||||
sample.Frequency.Value = 1 + NormalizedValue * 0.2f;
|
||||
|
||||
switch (NormalizedValue)
|
||||
{
|
||||
case 0:
|
||||
sample.Frequency.Value -= 0.4f;
|
||||
break;
|
||||
case 1:
|
||||
sample.Frequency.Value += 0.4f;
|
||||
break;
|
||||
}
|
||||
if (NormalizedValue == 0)
|
||||
sample.Frequency.Value -= 0.4f;
|
||||
else if (NormalizedValue == 1)
|
||||
sample.Frequency.Value += 0.4f;
|
||||
|
||||
sample.Play();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user