Skip to content

Commit

Permalink
NetworkTransformBase: fix interpolation being applied to a client's o…
Browse files Browse the repository at this point in the history
…bject that he had authority over. fixes #273
  • Loading branch information
miwarnec committed Jan 18, 2019
1 parent 1b90647 commit 12f0ba6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/Mirror/Components/NetworkTransformBase.cs
Expand Up @@ -344,8 +344,9 @@ void Update()
}

// apply interpolation on client for all players
// except for local player if he has authority and handles it himself
if (!(isLocalPlayer && hasAuthority))
// unless this client has authority over the object. could be
// himself or another object that he was assigned authority over
if (!hasAuthority)
{
// received one yet? (initialized?)
if (goal != null)
Expand Down

0 comments on commit 12f0ba6

Please sign in to comment.