From 7fac0955fdb830f16f082b43a8b89c4b654c8e56 Mon Sep 17 00:00:00 2001 From: miwarnec Date: Tue, 5 Nov 2024 17:44:41 +0100 Subject: [PATCH] remove custom change --- .../NetworkTransform/NetworkTransformHybrid2022.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index 0addcf51c..1c0c55422 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -97,11 +97,6 @@ public class NetworkTransformHybrid2022 : NetworkBehaviour public bool syncRotation = true; public bool syncScale = false; - // BEGIN CUSTOM CHANGE ///////////////////////////////////////////////// - // TODO rename to avoid double negative - public bool disableSendingThisToClients = false; - // END CUSTOM CHANGE /////////////////////////////////////////////////// - // debugging /////////////////////////////////////////////////////////// [Header("Debug")] public bool debugDraw; @@ -962,12 +957,9 @@ void UpdateServer() // perf: only grab NetworkTime.localTime property once. double localTime = NetworkTime.localTime; - // should we broadcast at all? - if (!disableSendingThisToClients) // CUSTOM CHANGE: see comment at definition - { - UpdateServerBaseline(localTime); - UpdateServerDelta(localTime); - } + // broadcast + UpdateServerBaseline(localTime); + UpdateServerDelta(localTime); // interpolate remote clients UpdateServerInterpolation();