1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 07:22:38 +08:00

Merge conditionals in line with other case of same logic

This commit is contained in:
Dean Herbert
2021-07-02 15:55:20 +09:00
Unverified
parent 63d2ac66d2
commit 35f7966922
2 changed files with 3 additions and 4 deletions
@@ -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;
+2 -4
View File
@@ -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();