mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
fix: server doesn't overwrite client authority sync points
This commit is contained in:
parent
2ae310f16c
commit
7c05eaf4ad
@ -694,8 +694,13 @@ void UpdateServer()
|
||||
// should we broadcast at all?
|
||||
if (!disableSendingThisToClients) // CUSTOM CHANGE: see comment at definition
|
||||
{
|
||||
UpdateServerBaseline(localTime);
|
||||
UpdateServerDelta(localTime);
|
||||
// only broadcast for server owned objects.
|
||||
// otherwise server would overwrite ClientToServer object's baselines.
|
||||
if (syncDirection == SyncDirection.ServerToClient || IsClientWithAuthority)
|
||||
{
|
||||
UpdateServerBaseline(localTime);
|
||||
UpdateServerDelta(localTime);
|
||||
}
|
||||
}
|
||||
|
||||
// interpolate remote clients
|
||||
|
Loading…
Reference in New Issue
Block a user