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

This commit is contained in:
RD42 2024-08-17 21:27:01 +08:00
parent f67d8de086
commit edc7c6a9a0

View File

@ -890,7 +890,7 @@ bool ReliabilityLayer::Send( char *data, int numberOfBitsToSend, PacketPriority
int maxDataSize = MTUSize - UDP_HEADER_SIZE - headerLength; int maxDataSize = MTUSize - UDP_HEADER_SIZE - headerLength;
if ( encryptor.IsKeySet() ) if ( encryptor.IsKeySet() )
maxDataSize -= 16; // Extra data for the encryptor maxDataSize -= 8; // Extra data for the encryptor
bool splitPacket = numberOfBytesToSend > maxDataSize; bool splitPacket = numberOfBytesToSend > maxDataSize;