mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Merge conditionals in line with other case of same logic
This commit is contained in:
parent
63d2ac66d2
commit
35f7966922
@ -163,6 +163,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
channel.Frequency.Value = 0.99f + RNG.NextDouble(0.02f) + NormalizedValue * 0.2f;
|
||||
|
||||
// intentionally pitched down, even when hitting max.
|
||||
if (NormalizedValue == 0 || NormalizedValue == 1)
|
||||
channel.Frequency.Value -= 0.5f;
|
||||
|
||||
|
@ -240,10 +240,8 @@ namespace osu.Game.Overlays.Volume
|
||||
|
||||
channel.Frequency.Value = 0.99f + RNG.NextDouble(0.02f) + displayVolume * 0.1f;
|
||||
|
||||
if (displayVolumeInt == 0)
|
||||
channel.Frequency.Value -= 0.5f;
|
||||
else if (displayVolumeInt == 100)
|
||||
// intentionally pitched down, even when hitting max.
|
||||
// intentionally pitched down, even when hitting max.
|
||||
if (displayVolumeInt == 0 || displayVolumeInt == 100)
|
||||
channel.Frequency.Value -= 0.5f;
|
||||
|
||||
channel.Play();
|
||||
|
Loading…
Reference in New Issue
Block a user