NetworkBehaviour.IsDirty uses >= for sync interval check to be 100% accurate

This commit is contained in:
vis2k 2019-01-02 20:19:20 +01:00
parent 7c03bc1eb2
commit c0658b2568

View File

@ -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);