Fix floating point comparison

This commit is contained in:
Paul Pacheco 2020-01-01 20:25:58 -06:00
parent 480350d413
commit addbd91fbd

View File

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