mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
remove custom change
This commit is contained in:
parent
e74b2781c3
commit
7fac0955fd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user