mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[raknet] Match ReliabilityLayer::Send(...)
This commit is contained in:
parent
f67d8de086
commit
edc7c6a9a0
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user