mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Merge 9efd8a9473
into 1187a59b18
This commit is contained in:
commit
d06e7364af
@ -61,7 +61,7 @@ void LateUpdate()
|
|||||||
// instead.
|
// instead.
|
||||||
if (isServer || (IsClientWithAuthority && NetworkClient.ready))
|
if (isServer || (IsClientWithAuthority && NetworkClient.ready))
|
||||||
{
|
{
|
||||||
if (sendIntervalCounter == sendIntervalMultiplier && (!onlySyncOnChange || Changed(Construct())))
|
if (sendIntervalCounter >= sendIntervalMultiplier && (!onlySyncOnChange || Changed(Construct())))
|
||||||
SetDirty();
|
SetDirty();
|
||||||
|
|
||||||
CheckLastSendTime();
|
CheckLastSendTime();
|
||||||
@ -129,7 +129,7 @@ protected virtual void CheckLastSendTime()
|
|||||||
// timeAsDouble not available in older Unity versions.
|
// timeAsDouble not available in older Unity versions.
|
||||||
if (AccurateInterval.Elapsed(NetworkTime.localTime, NetworkServer.sendInterval, ref lastSendIntervalTime))
|
if (AccurateInterval.Elapsed(NetworkTime.localTime, NetworkServer.sendInterval, ref lastSendIntervalTime))
|
||||||
{
|
{
|
||||||
if (sendIntervalCounter == sendIntervalMultiplier)
|
if (sendIntervalCounter >= sendIntervalMultiplier)
|
||||||
sendIntervalCounter = 0;
|
sendIntervalCounter = 0;
|
||||||
sendIntervalCounter++;
|
sendIntervalCounter++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user