1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 03:22:57 +08:00

Fixed improper handling of size calculation when the max multiplier was changed in mod settings

This commit is contained in:
jhk2601 2024-10-16 20:37:59 -04:00
parent bf970afddb
commit 9e1af18ac6

View File

@ -66,13 +66,10 @@ namespace osu.Game.Rulesets.Osu.Mods
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
{
if (MaxSizeComboCount.Value == 0) return;
CurrentCombo.BindTo(scoreProcessor.Combo);
CurrentCombo.BindValueChanged(combo =>
{
ComboBasedSize = Math.Min(MaxMulti.Value, 10 * ((float)combo.NewValue / MaxSizeComboCount.Value));
ComboBasedSize = Math.Max(ComboBasedSize, MIN_SIZE);
ComboBasedSize = Math.Clamp(MaxMulti.Value * ((float)combo.NewValue / MaxSizeComboCount.Value), MIN_SIZE, MaxMulti.Value);
}, true);
}