mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 03:39:53 +08:00
Change implementation to match other implementations
The previous version was confusing to read.
This commit is contained in:
@@ -39,8 +39,8 @@ namespace osu.Game.Rulesets.Mods
|
||||
foreach (var description in base.SettingDescription)
|
||||
yield return description;
|
||||
|
||||
if (AdjustPitch.Value)
|
||||
yield return ("Adjust pitch", "On");
|
||||
if (!AdjustPitch.IsDefault)
|
||||
yield return ("Adjust pitch", AdjustPitch.Value ? "On" : "Off");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@ namespace osu.Game.Rulesets.Mods
|
||||
foreach (var description in base.SettingDescription)
|
||||
yield return description;
|
||||
|
||||
if (AdjustPitch.Value)
|
||||
yield return ("Adjust pitch", "On");
|
||||
if (!AdjustPitch.IsDefault)
|
||||
yield return ("Adjust pitch", AdjustPitch.Value ? "On" : "Off");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace osu.Game.Rulesets.Mods
|
||||
{
|
||||
yield return ("Speed change", $"{InitialRate.Value:N2}x to {FinalRate.Value:N2}x");
|
||||
|
||||
if (!AdjustPitch.Value)
|
||||
yield return ("Adjust pitch", "Off");
|
||||
if (!AdjustPitch.IsDefault)
|
||||
yield return ("Adjust pitch", AdjustPitch.Value ? "On" : "Off");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user