Skip to content

Commit

Permalink
Add inline commentary in Mod{Day,Night}core about different speed a…
Browse files Browse the repository at this point in the history
…djustments
  • Loading branch information
bdach committed Oct 18, 2023
1 parent 9907adc commit cff69d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osu.Game/Rulesets/Mods/ModDaycore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ protected ModDaycore()
{
rateAdjustHelper = new RateAdjustModHelper(SpeedChange);

// intentionally not deferring the speed change handling to `RateAdjustModHelper`
// as the expected result of operation is not the same (daycore should preserve constant pitch).
SpeedChange.BindValueChanged(val =>
{
freqAdjust.Value = SpeedChange.Default;
Expand Down
2 changes: 2 additions & 0 deletions osu.Game/Rulesets/Mods/ModNightcore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ protected ModNightcore()
{
rateAdjustHelper = new RateAdjustModHelper(SpeedChange);

// intentionally not deferring the speed change handling to `RateAdjustModHelper`
// as the expected result of operation is not the same (nightcore should preserve constant pitch).
SpeedChange.BindValueChanged(val =>
{
freqAdjust.Value = SpeedChange.Default;
Expand Down

0 comments on commit cff69d6

Please sign in to comment.