1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

switch -> if.

This commit is contained in:
Dean Herbert 2017-04-12 19:41:11 +09:00
parent 2964c04c14
commit ec6267c5b2
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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();
}