From addbd91fbd59b31f1849f089861bbdec58338e76 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Wed, 1 Jan 2020 20:25:58 -0600 Subject: [PATCH] Fix floating point comparison --- Assets/Mirror/Components/NetworkAnimator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Components/NetworkAnimator.cs b/Assets/Mirror/Components/NetworkAnimator.cs index cfebd84d4..4f93d376e 100644 --- a/Assets/Mirror/Components/NetworkAnimator.cs +++ b/Assets/Mirror/Components/NetworkAnimator.cs @@ -132,7 +132,7 @@ bool CheckAnimStateChanged(out int stateHash, out float normalizedTime, int laye void CheckSendRate() { - if (sendMessagesAllowed && syncInterval != 0 && sendTimer < Time.time) + if (sendMessagesAllowed && syncInterval > 0 && sendTimer < Time.time) { sendTimer = Time.time + syncInterval;