1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Avoid mixing precision across time ramp bindables

Bears no functional difference, it's just a bit less of an eyesore.
This commit is contained in:
Bartłomiej Dach 2021-02-24 19:16:10 +01:00
parent 73d6a3687e
commit 421b7877d4
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace osu.Game.Rulesets.Mods
FinalRate.BindValueChanged(val => FinalRate.BindValueChanged(val =>
{ {
if (val.NewValue >= InitialRate.Value) if (val.NewValue >= InitialRate.Value)
InitialRate.Value = val.NewValue + FinalRate.Precision; InitialRate.Value = val.NewValue + InitialRate.Precision;
}); });
} }
} }

View File

@ -57,7 +57,7 @@ namespace osu.Game.Rulesets.Mods
FinalRate.BindValueChanged(val => FinalRate.BindValueChanged(val =>
{ {
if (val.NewValue <= InitialRate.Value) if (val.NewValue <= InitialRate.Value)
InitialRate.Value = val.NewValue - FinalRate.Precision; InitialRate.Value = val.NewValue - InitialRate.Precision;
}); });
} }
} }