1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 10:21:09 +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

@@ -490,7 +490,8 @@ namespace Lidgren.Network
bool isFragment = ((low & 1) == 1);
ushort sequenceNumber = (ushort)((low >> 1) | (((int)high) << 7));
numFragments++;
if (isFragment)
numFragments++;
ushort payloadBitLength = (ushort)(m_receiveBuffer[ptr++] | (m_receiveBuffer[ptr++] << 8));
int payloadByteLength = NetUtility.BytesToHoldBits(payloadBitLength);