mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Fix floating point comparison
This commit is contained in:
parent
480350d413
commit
addbd91fbd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user