Revert "fix: server doesn't overwrite client authority sync points"

This reverts commit 7c05eaf4ad.
This commit is contained in:
miwarnec 2024-11-04 21:43:40 +01:00
parent c2e117a0c2
commit ab81c6167e

View File

@ -693,15 +693,10 @@ void UpdateServer()
// should we broadcast at all? // should we broadcast at all?
if (!disableSendingThisToClients) // CUSTOM CHANGE: see comment at definition if (!disableSendingThisToClients) // CUSTOM CHANGE: see comment at definition
{
// only broadcast for server owned objects.
// otherwise server would overwrite ClientToServer object's baselines.
if (syncDirection == SyncDirection.ServerToClient || IsClientWithAuthority)
{ {
UpdateServerBaseline(localTime); UpdateServerBaseline(localTime);
UpdateServerDelta(localTime); UpdateServerDelta(localTime);
} }
}
// interpolate remote clients // interpolate remote clients
UpdateServerInterpolation(); UpdateServerInterpolation();