diff --git a/source/enet/compress.c b/source/enet/compress.c index f21dddd2..07f159e0 100644 --- a/source/enet/compress.c +++ b/source/enet/compress.c @@ -298,7 +298,7 @@ enet_range_coder_compress (void * context, const ENetBuffer * inBuffers, size_t return 0; \ else \ { \ - ENetSymbol * symbol = (predictor).symbols, * child; \ + ENetSymbol * symbol = (predictor).symbols; \ for (;;) \ { \ if (code >= under_ + symbol -> total) \ @@ -451,8 +451,8 @@ enet_range_coder_decompress (void * context, const enet_uint8 * inData, size_t i return (size_t) (outData - outStart); } -/** Sets the packet compressor the host should use to the default range compressor. - @param host host to enable or disable compression for +/** Sets the packet compressor the host should use to the default range coder. + @param host host to enable the range coder for @returns 0 on success, < 0 on failure */ int diff --git a/source/enet/include/enet/enet.h b/source/enet/include/enet/enet.h index 3c3ef948..9f40793a 100755 --- a/source/enet/include/enet/enet.h +++ b/source/enet/include/enet/enet.h @@ -305,7 +305,7 @@ typedef enet_uint32 (ENET_CALLBACK * ENetChecksumCallback) (const ENetBuffer * b /** An ENet host for communicating with peers. * - * No fields should be modified. + * No fields should be modified unless otherwise stated. @sa enet_host_create() @sa enet_host_destroy() @@ -314,6 +314,7 @@ typedef enet_uint32 (ENET_CALLBACK * ENetChecksumCallback) (const ENetBuffer * b @sa enet_host_flush() @sa enet_host_broadcast() @sa enet_host_compress() + @sa enet_host_compress_with_range_coder() @sa enet_host_channel_limit() @sa enet_host_bandwidth_limit() @sa enet_host_bandwidth_throttle() @@ -340,7 +341,7 @@ typedef struct _ENetHost size_t commandCount; ENetBuffer buffers [ENET_BUFFER_MAXIMUM]; size_t bufferCount; - ENetChecksumCallback checksum; + ENetChecksumCallback checksum; /**< callback the user can set to enable packet checksums for this host */ ENetCompressor compressor; enet_uint8 packetData [2][ENET_PROTOCOL_MAXIMUM_MTU]; ENetAddress receivedAddress;