From fb56873352785a9aed7ce37959355be1198d3f82 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 16 Oct 2025 00:04:02 +0500 Subject: [PATCH] engine: client: increase lower cl_dlmax bound to 512 for goldsrc protocol --- engine/client/cl_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 0ca2d1d5..b35e81aa 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -237,7 +237,12 @@ static int CL_GetGoldSrcFragmentSize( void *unused, fragsize_t mode ) return 1400; // MAX_ROUTABLE_PACKET default: if( cls.state == ca_active ) - return bound( 16, cl_dlmax.value, 1024 ); + { + // GoldSrc's default value is 512 + // let's help users to not shoot themselves in the foot, + // assuming nobody wants to make this value lower + return bound( 512, cl_dlmax.value, 1024 ); + } return 128; } }