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

Fixed number of fragments statistics, fixed dropping duplicates for early received reliable unordered messages, added dropped messages statistics

This commit is contained in:
Michael Lidgren
2015-06-09 14:10:28 +02:00
parent d111197edb
commit 387f786950
7 changed files with 48 additions and 57 deletions

View File

@@ -20,7 +20,11 @@ namespace Lidgren.Network
int relate = NetUtility.RelativeSequenceNumber(nr, m_lastReceivedSequenceNumber + 1);
if (relate < 0)
{
m_connection.m_statistics.MessageDropped();
m_peer.LogVerbose("Received message #" + nr + " DROPPING DUPLICATE");
return; // drop if late
}
m_lastReceivedSequenceNumber = nr;
m_peer.ReleaseMessage(msg);