2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

engine: client: fix sendres message for GoldSrc protocol

This commit is contained in:
Alibek Omarov 2024-10-15 23:38:51 +03:00
parent a32c702dbd
commit e81a0ded11

View File

@ -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 );
}