Merge branch 'Menotdan-network-replication-fix-1'
This commit is contained in:
@@ -1029,7 +1029,7 @@ void InvokeObjectReplication(NetworkReplicatedObject& item, uint32 ownerFrame, b
|
||||
}
|
||||
|
||||
// Speed up replication of client-owned objects to other clients from server to reduce lag (data has to go from client to server and then to other clients)
|
||||
if (NetworkManager::IsServer())
|
||||
if (NetworkManager::IsServer() || NetworkManager::IsHost())
|
||||
DirtyObjectImpl(item, obj);
|
||||
}
|
||||
|
||||
@@ -2147,7 +2147,7 @@ void NetworkInternal::NetworkReplicatorUpdate()
|
||||
Objects.Remove(it);
|
||||
continue;
|
||||
}
|
||||
if (item.Role != NetworkObjectRole::OwnedAuthoritative)
|
||||
if (item.Role != NetworkObjectRole::OwnedAuthoritative && NetworkManager::IsClient())
|
||||
continue; // Send replication messages of only owned objects or from other client objects
|
||||
CachedReplicationResult->AddObject(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user