remove custom change

This commit is contained in:
miwarnec 2024-11-05 17:44:41 +01:00
parent e74b2781c3
commit 7fac0955fd

View File

@ -97,11 +97,6 @@ public class NetworkTransformHybrid2022 : NetworkBehaviour
public bool syncRotation = true; public bool syncRotation = true;
public bool syncScale = false; public bool syncScale = false;
// BEGIN CUSTOM CHANGE /////////////////////////////////////////////////
// TODO rename to avoid double negative
public bool disableSendingThisToClients = false;
// END CUSTOM CHANGE ///////////////////////////////////////////////////
// debugging /////////////////////////////////////////////////////////// // debugging ///////////////////////////////////////////////////////////
[Header("Debug")] [Header("Debug")]
public bool debugDraw; public bool debugDraw;
@ -962,12 +957,9 @@ void UpdateServer()
// perf: only grab NetworkTime.localTime property once. // perf: only grab NetworkTime.localTime property once.
double localTime = NetworkTime.localTime; double localTime = NetworkTime.localTime;
// should we broadcast at all? // broadcast
if (!disableSendingThisToClients) // CUSTOM CHANGE: see comment at definition
{
UpdateServerBaseline(localTime); UpdateServerBaseline(localTime);
UpdateServerDelta(localTime); UpdateServerDelta(localTime);
}
// interpolate remote clients // interpolate remote clients
UpdateServerInterpolation(); UpdateServerInterpolation();