Remove redundant parenthesis

This commit is contained in:
Paul Pacheco 2018-10-11 20:13:54 -05:00
parent b57bbf4ec7
commit 875115db2c

View File

@ -1041,7 +1041,7 @@ void InterpolateTransformMode2D()
if (m_InterpolateMovement != 0)
{
Vector2 oldVelocity = m_RigidBody2D.velocity;
Vector2 newVelocity = (((Vector2)m_TargetSyncPosition - m_RigidBody2D.position)) * m_InterpolateMovement / GetNetworkSendInterval();
Vector2 newVelocity = ((Vector2)m_TargetSyncPosition - m_RigidBody2D.position) * m_InterpolateMovement / GetNetworkSendInterval();
if (!m_Grounded && newVelocity.y < 0)
{
newVelocity.y = oldVelocity.y;