Simplify conditional

This commit is contained in:
Paul Pacheco 2018-10-13 12:33:08 -05:00
parent 5d28548943
commit dcd723accf

View File

@ -1136,13 +1136,8 @@ bool HasMoved()
{
diff = Mathf.Abs(m_RigidBody2D.velocity.sqrMagnitude - m_PrevVelocity);
}
if (diff > k_LocalVelocityThreshold)
{
return true;
}
return false;
return diff > k_LocalVelocityThreshold;
}
[Client]