enet: Resync with upstream we forked at, add patch

Before rebasing on the newly released enet 1.3.14, let's resync with the actual
commit we initially imported, which seems to be:
https://github.com/lsalzman/enet/commit/f46fee0acc8e243b2b6910b09693f93c3aad775f
This commit is contained in:
Rémi Verschelde
2020-01-05 19:05:42 +01:00
parent 61dd7748ca
commit 571c713a5e
3 changed files with 111 additions and 5 deletions
+1 -2
View File
@@ -9,7 +9,6 @@
#include "enet/time.h"
#include "enet/enet.h"
static size_t commandSizes [ENET_PROTOCOL_COMMAND_COUNT] =
{
0,
@@ -1691,7 +1690,7 @@ enet_protocol_send_outgoing_commands (ENetHost * host, ENetEvent * event, int ch
& host -> buffers [1], host -> bufferCount - 1,
originalSize,
host -> packetData [1],
originalSize);
originalSize);
if (compressedSize > 0 && compressedSize < originalSize)
{
host -> headerFlags |= ENET_PROTOCOL_HEADER_FLAG_COMPRESSED;