[raknet] Match ReliabilityLayer::GetBitStreamHeaderLength(...)

This commit is contained in:
RD42 committed 2025-04-28 23:12:40 -07:00
1 parent 5dc4a094e6
commit b6273cdd25
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -1610,7 +1610,7 @@ int ReliabilityLayer::GetBitStreamHeaderLength( const InternalPacket *const inte
// Write the PacketReliability. This is encoded in 3 bits
//bitStream->WriteBits((unsigned char*)&(internalPacket->reliability), 3, true);
bitLength += 3;
bitLength += reliabilitySizeInBits;
// If the reliability requires an ordering channel and ordering index, we Write those.
if ( internalPacket->reliability == UNRELIABLE_SEQUENCED || internalPacket->reliability == RELIABLE_SEQUENCED || internalPacket->reliability == RELIABLE_ORDERED )
+2
View File
@@ -314,6 +314,8 @@ private:
// unsigned int *receivedPackets;
unsigned int blockWindowIncreaseUntilTime;
RakNetStatisticsStruct statistics;
unsigned reliabilitySizeInBits;
/// Memory-efficient receivedPackets algorithm:
/// receivedPacketsBaseIndex is the packet number we are expecting