From e81a0ded115bcd9694be78aae601d22d850e4329 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 15 Oct 2024 23:38:51 +0300 Subject: [PATCH] engine: client: fix sendres message for GoldSrc protocol --- engine/client/cl_parse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 2de116a0..83bab0ac 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -1043,9 +1043,13 @@ void CL_ParseServerData( sizebuf_t *msg, connprotocol_t proto ) COM_ClearCustomizationList( &cl.players[i].customdata, true ); CL_CreateCustomizationList(); - if( proto != PROTO_LEGACY ) + // request resources from server + if( proto == PROTO_GOLDSRC ) + { + CL_ServerCommand( true, "sendres" ); + } + else if( proto != PROTO_LEGACY ) { - // request resources from server CL_ServerCommand( true, "sendres %i\n", cl.servercount ); }