calculateAllowedDistance

open fun calculateAllowedDistance(distance: Int): Int

Calculates allowed distance.

Return

The provided distance if checkDistance is truegetDefaultDistance otherwise.

Parameters

distance

The distance to check.