mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 00:52:59 +08:00
Fixes unexpected possible flashlight sizes.
This commit is contained in:
parent
5fc6f1f4a5
commit
4ff322bf9a
@ -53,6 +53,12 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
FinalChangeSizeCombo.MaxValue = findClosestMultipleFrom(ChangeSizeComboDivisor.MaxValue, newChangeSizeComboDivisor);
|
FinalChangeSizeCombo.MaxValue = findClosestMultipleFrom(ChangeSizeComboDivisor.MaxValue, newChangeSizeComboDivisor);
|
||||||
FinalChangeSizeCombo.Precision = newChangeSizeComboDivisor;
|
FinalChangeSizeCombo.Precision = newChangeSizeComboDivisor;
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
// The final flashlight size shouldn't exceed the starting flashlight size.
|
||||||
|
StartingFlashlightSize.BindValueChanged(e =>
|
||||||
|
{
|
||||||
|
FinalFlashlightSize.MaxValue = e.NewValue;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[SettingSource("Starting flashlight size", "Multiplier applied to the default flashlight size.")]
|
[SettingSource("Starting flashlight size", "Multiplier applied to the default flashlight size.")]
|
||||||
|
Loading…
Reference in New Issue
Block a user