Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
spelling correction
  • Loading branch information
NoelStephensUnity committed Nov 27, 2023
1 parent cfaf940 commit 2aad303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions com.unity.netcode.gameobjects/Components/NetworkTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ internal uint BitSet
}

// Used to determine if this state was deferred
internal bool WasDeferrred;
internal bool WasDeferred;

// Used to store the tick calculated sent time
internal double SentTime;
Expand Down Expand Up @@ -1549,7 +1549,7 @@ private void TryCommitTransform(ref Transform transformToCommit, bool synchroniz
}

// If we are not synchronizing, not setting state, our last state sent was deferred, and we are still on the same tick, then ignore this tick update check
if (!synchronize && !settingState && m_LastTick == m_CachedNetworkManager.ServerTime.Tick && m_OldState.WasDeferrred)
if (!synchronize && !settingState && m_LastTick == m_CachedNetworkManager.ServerTime.Tick && m_OldState.WasDeferred)
{
return;
}
Expand All @@ -1570,7 +1570,7 @@ private void TryCommitTransform(ref Transform transformToCommit, bool synchroniz
{
DeferredNetworkTransformState = m_LocalAuthoritativeNetworkState;
DeferredNetworkTransformState.NetworkTick = m_CachedNetworkManager.ServerTime.Tick + 1;
DeferredNetworkTransformState.WasDeferrred = true;
DeferredNetworkTransformState.WasDeferred = true;
return;
}

Expand Down

0 comments on commit 2aad303

Please sign in to comment.