diff --git a/ml_amt/MotionTweaker.cs b/ml_amt/MotionTweaker.cs index 7b5ed0d..5947147 100644 --- a/ml_amt/MotionTweaker.cs +++ b/ml_amt/MotionTweaker.cs @@ -290,9 +290,6 @@ namespace ml_amt m_customProneLimit = (l_customTransform != null); m_proneLimit = m_customProneLimit ? Mathf.Clamp(l_customTransform.localPosition.y, 0f, 1f) : Settings.ProneLimit; - if(m_proneLimit > m_crouchLimit) - Utils.Swap(ref m_proneLimit, ref m_crouchLimit); - l_customTransform = PlayerSetup.Instance._avatar.transform.Find("LocomotionOffset"); m_customLocomotionOffset = (l_customTransform != null); m_locomotionOffset = m_customLocomotionOffset ? l_customTransform.localPosition : Vector3.zero; diff --git a/ml_amt/Utils.cs b/ml_amt/Utils.cs index bf5087c..31b75d8 100644 --- a/ml_amt/Utils.cs +++ b/ml_amt/Utils.cs @@ -12,13 +12,5 @@ namespace ml_amt { return Matrix4x4.TRS(p_pos ? p_transform.position : Vector3.zero, p_rot ? p_transform.rotation : Quaternion.identity, p_scl ? p_transform.localScale : Vector3.one); } - - // Usefull - public static void Swap(ref T lhs, ref T rhs) - { - T temp = lhs; - lhs = rhs; - rhs = temp; - } } }