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 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);
|
||||||
{
|
UpdateServerDelta(localTime);
|
||||||
UpdateServerBaseline(localTime);
|
|
||||||
UpdateServerDelta(localTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
// interpolate remote clients
|
// interpolate remote clients
|
||||||
UpdateServerInterpolation();
|
UpdateServerInterpolation();
|
||||||
|
Loading…
Reference in New Issue
Block a user