From 6a819c8683a1d26e82efdd142acca9a367462637 Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Thu, 16 Jul 2015 04:43:03 +0300 Subject: [PATCH] Fixed MAX_FRAGMENTS count --- rehlds/engine/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/engine/net.h b/rehlds/engine/net.h index b0d45e1..e5757bc 100644 --- a/rehlds/engine/net.h +++ b/rehlds/engine/net.h @@ -250,7 +250,7 @@ typedef struct flow_s #ifndef REHLDS_FIXES #define MAX_FRAGMENTS 25000 #else -#define MAX_FRAGMENTS ((NET_MAX_PAYLOAD + FRAGMENT_SIZE - 1) / FRAGMENT_SIZE) // should be enough for any send buf +#define MAX_FRAGMENTS (NET_MAX_PAYLOAD / FRAGMENT_SIZE) // should be enough for any send buf #endif #define UDP_HEADER_SIZE 28