1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

Fix for time issue 129; thanks to jujjyl

This commit is contained in:
lidgren
2012-08-23 12:55:12 +00:00
parent 29bd071d0d
commit b4b01aa52d
2 changed files with 4 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ namespace Lidgren.Network
int maxCHBpS = 1250 - m_connections.Count;
if (maxCHBpS < 250)
maxCHBpS = 250;
if (delta > (1.0 / (double)maxCHBpS)) // max connection heartbeats/second max
if (delta > (1.0 / (double)maxCHBpS) || delta < 0.0) // max connection heartbeats/second max
{
m_frameCounter++;
m_lastHeartbeat = dnow;