mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: server doesn't overwrite client authority sync points
This commit is contained in:
parent
6ece0c7d71
commit
6d6d31b202
@ -683,10 +683,15 @@ 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user