Fix #176: ApplySpawnPayload only enables isClient if SpawnFinished. Forgot to do that when removing OnSetLocalObject in commit 58a70038a9 before.

This commit is contained in:
vis2k 2018-12-19 12:09:52 +01:00
parent 4bd28e72c7
commit d89ecf0ee0

View File

@ -404,12 +404,12 @@ static void ApplySpawnPayload(NetworkIdentity identity, Vector3 position, byte[]
}
identity.SetNetworkInstanceId(netId);
identity.EnableIsClient();
NetworkIdentity.spawned[netId] = identity;
// objects spawned as part of initial state are started on a second pass
if (s_IsSpawnFinished)
{
identity.EnableIsClient();
identity.OnStartClient();
CheckForOwner(identity);
}