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 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
{
// broadcast
UpdateServerBaseline(localTime);
UpdateServerDelta(localTime);
}
// interpolate remote clients
UpdateServerInterpolation();