summaryrefslogtreecommitdiff
path: root/libs/enet/peer.c
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-03-15 20:46:39 +0100
committerStefan Dombrowski <stefan@uni-bonn.de>2011-03-15 20:46:39 +0100
commit935d35a14fb0f5a635154e032cc113d7b6740976 (patch)
treec4aa12bb9f92ee0b42f03b05d84b1ef72fdbce30 /libs/enet/peer.c
parent91e2779891973cdbefc6e07ca3dee7a432a05112 (diff)
downloadmana-935d35a14fb0f5a635154e032cc113d7b6740976.tar.gz
mana-935d35a14fb0f5a635154e032cc113d7b6740976.tar.bz2
mana-935d35a14fb0f5a635154e032cc113d7b6740976.tar.xz
mana-935d35a14fb0f5a635154e032cc113d7b6740976.zip
Updating enet to version 1.3.1
This makes the connection much more reliable.
Diffstat (limited to 'libs/enet/peer.c')
-rw-r--r--libs/enet/peer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/enet/peer.c b/libs/enet/peer.c
index d778ce1d..e1c117f8 100644
--- a/libs/enet/peer.c
+++ b/libs/enet/peer.c
@@ -108,6 +108,8 @@ enet_peer_send (ENetPeer * peer, enet_uint8 channelID, ENetPacket * packet)
return -1;
fragmentLength = peer -> mtu - sizeof (ENetProtocolHeader) - sizeof (ENetProtocolSendFragment);
+ if (peer -> host -> checksum != NULL)
+ fragmentLength -= sizeof(enet_uint32);
if (packet -> dataLength > fragmentLength)
{