mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-07-18 17:38:12 +08:00
[raknet] Match ReliabilityLayer::GetBitStreamHeaderLength(...)
This commit is contained in:
@ -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 )
|
||||
|
@ -315,6 +315,8 @@ private:
|
||||
unsigned int blockWindowIncreaseUntilTime;
|
||||
RakNetStatisticsStruct statistics;
|
||||
|
||||
unsigned reliabilitySizeInBits;
|
||||
|
||||
/// Memory-efficient receivedPackets algorithm:
|
||||
/// receivedPacketsBaseIndex is the packet number we are expecting
|
||||
/// Everything under receivedPacketsBaseIndex is a packet we already got
|
||||
|
Reference in New Issue
Block a user