From 12f0ba6a64bf29d04b708d568e155476605a6346 Mon Sep 17 00:00:00 2001 From: vis2k Date: Fri, 18 Jan 2019 17:50:43 +0100 Subject: [PATCH] NetworkTransformBase: fix interpolation being applied to a client's object that he had authority over. fixes #273 --- Assets/Mirror/Components/NetworkTransformBase.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Components/NetworkTransformBase.cs b/Assets/Mirror/Components/NetworkTransformBase.cs index 33def3069..1bba47504 100644 --- a/Assets/Mirror/Components/NetworkTransformBase.cs +++ b/Assets/Mirror/Components/NetworkTransformBase.cs @@ -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)