mirror of https://github.com/ppy/osu
Change name and description of `force` parameter in `SetArbitraryDivisor`
This commit is contained in:
parent
9e1c242713
commit
a264ac9f38
|
@ -29,11 +29,11 @@ public BindableBeatDivisor(int value = 1)
|
|||
/// Set a divisor, updating the valid divisor range appropriately.
|
||||
/// </summary>
|
||||
/// <param name="divisor">The intended divisor.</param>
|
||||
/// <param name="force">Ignores the current valid divisor range when true.</param>
|
||||
public void SetArbitraryDivisor(int divisor, bool force = false)
|
||||
/// <param name="preferKnownPresets">Forces changing the valid divisors to a known preset.</param>
|
||||
public void SetArbitraryDivisor(int divisor, bool preferKnownPresets = false)
|
||||
{
|
||||
// If the current valid divisor range doesn't contain the proposed value, attempt to find one which does.
|
||||
if (force || !ValidDivisors.Value.Presets.Contains(divisor))
|
||||
if (preferKnownPresets || !ValidDivisors.Value.Presets.Contains(divisor))
|
||||
{
|
||||
if (BeatDivisorPresetCollection.COMMON.Presets.Contains(divisor))
|
||||
ValidDivisors.Value = BeatDivisorPresetCollection.COMMON;
|
||||
|
|
Loading…
Reference in New Issue