Change name and description of `force` parameter in `SetArbitraryDivisor`

This commit is contained in:
Mike Will 2024-01-25 05:12:54 -05:00
parent 9e1c242713
commit a264ac9f38
1 changed files with 3 additions and 3 deletions

View File

@ -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;