Skip to content

Commit 1dc67f5

Browse files
update
Just adding some parenthesis per Kitty's suggestion.
1 parent 207285d commit 1dc67f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.netcode.gameobjects/Components/NetworkTransform.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ private void ApplyAuthoritativeState()
784784
}
785785

786786
// Apply the new position
787-
if (networkState.HasPositionChange || Interpolate && SynchronizePosition)
787+
if (networkState.HasPositionChange || (Interpolate && SynchronizePosition))
788788
{
789789
if (InLocalSpace)
790790
{
@@ -797,7 +797,7 @@ private void ApplyAuthoritativeState()
797797
}
798798

799799
// Apply the new rotation
800-
if (networkState.HasRotAngleChange || Interpolate && SynchronizeRotation)
800+
if (networkState.HasRotAngleChange || (Interpolate && SynchronizeRotation))
801801
{
802802
if (InLocalSpace)
803803
{
@@ -810,7 +810,7 @@ private void ApplyAuthoritativeState()
810810
}
811811

812812
// Apply the new scale
813-
if (networkState.HasScaleChange || Interpolate && SynchronizeScale)
813+
if (networkState.HasScaleChange || (Interpolate && SynchronizeScale))
814814
{
815815
transform.localScale = interpolatedScale;
816816
}

0 commit comments

Comments
 (0)