Skip to content

Commit b52e6b6

Browse files
style
adjusting comments.
1 parent ebfad77 commit b52e6b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,8 @@ private void TryToStopExtrapolatingLastState()
986986
// Offset by 1 tick duration
987987
m_LastReceivedState.SentTime += m_TickFrequency;
988988
AddInterpolatedState(m_LastReceivedState);
989+
990+
// Now reset our last received state so we won't apply this state again
989991
m_LastReceivedState.ClearBitSetForNextTick();
990992
}
991993

@@ -1019,7 +1021,8 @@ private void OnNetworkStateChanged(NetworkTransformState oldState, NetworkTransf
10191021
m_LastReceivedState = newState;
10201022

10211023
// Set the current local tick and wait until the next tick before we end
1022-
// this state's potential of extrapolating past the target value
1024+
// this state's potential of extrapolating past the target value beyond
1025+
// the state's relative tick duration
10231026
m_LastReceivedState.EndExtrapolationTick = NetworkManager.LocalTime.Tick;
10241027
}
10251028
}

0 commit comments

Comments
 (0)