mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 03:03:21 +08:00
Fixed improper handling of size calculation when the max multiplier was changed in mod settings
This commit is contained in:
parent
bf970afddb
commit
9e1af18ac6
@ -66,13 +66,10 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||||
{
|
{
|
||||||
if (MaxSizeComboCount.Value == 0) return;
|
|
||||||
|
|
||||||
CurrentCombo.BindTo(scoreProcessor.Combo);
|
CurrentCombo.BindTo(scoreProcessor.Combo);
|
||||||
CurrentCombo.BindValueChanged(combo =>
|
CurrentCombo.BindValueChanged(combo =>
|
||||||
{
|
{
|
||||||
ComboBasedSize = Math.Min(MaxMulti.Value, 10 * ((float)combo.NewValue / MaxSizeComboCount.Value));
|
ComboBasedSize = Math.Clamp(MaxMulti.Value * ((float)combo.NewValue / MaxSizeComboCount.Value), MIN_SIZE, MaxMulti.Value);
|
||||||
ComboBasedSize = Math.Max(ComboBasedSize, MIN_SIZE);
|
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user