mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkBehaviour.IsDirty uses >= for sync interval check to be 100% accurate
This commit is contained in:
parent
7c03bc1eb2
commit
c0658b2568
@ -327,7 +327,7 @@ public void ClearAllDirtyBits()
|
||||
|
||||
internal bool IsDirty()
|
||||
{
|
||||
if (Time.time - m_LastSendTime > syncInterval)
|
||||
if (Time.time - m_LastSendTime >= syncInterval)
|
||||
{
|
||||
return m_SyncVarDirtyBits != 0L
|
||||
|| m_SyncObjects.Any(obj => obj.IsDirty);
|
||||
|
Loading…
Reference in New Issue
Block a user