if (distance >= 1.0E-4F)
{ distance = MathHelper.sqrt_float(distance); if (distance < 1.0F) distance = 1.0F;