From c0658b256888e1009dde24967059818453209536 Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 2 Jan 2019 20:19:20 +0100 Subject: [PATCH] NetworkBehaviour.IsDirty uses >= for sync interval check to be 100% accurate --- Mirror/Runtime/NetworkBehaviour.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mirror/Runtime/NetworkBehaviour.cs b/Mirror/Runtime/NetworkBehaviour.cs index 15458cb6a..0173c1ba5 100644 --- a/Mirror/Runtime/NetworkBehaviour.cs +++ b/Mirror/Runtime/NetworkBehaviour.cs @@ -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);