mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkTransformBase: fix interpolation being applied to a client's object that he had authority over. fixes #273
This commit is contained in:
parent
1b90647f72
commit
12f0ba6a64
@ -344,8 +344,9 @@ void Update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// apply interpolation on client for all players
|
// apply interpolation on client for all players
|
||||||
// except for local player if he has authority and handles it himself
|
// unless this client has authority over the object. could be
|
||||||
if (!(isLocalPlayer && hasAuthority))
|
// himself or another object that he was assigned authority over
|
||||||
|
if (!hasAuthority)
|
||||||
{
|
{
|
||||||
// received one yet? (initialized?)
|
// received one yet? (initialized?)
|
||||||
if (goal != null)
|
if (goal != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user