NetworkTransformBase: fix interpolation being applied to a client's object that he had authority over. fixes #273

This commit is contained in:
vis2k 2019-01-18 17:50:43 +01:00
parent 1b90647f72
commit 12f0ba6a64

View File

@ -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)