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

engine: client: avoid useless check on empty clc_resourcelist, which will never be false

This commit is contained in:
Alibek Omarov 2024-10-15 06:15:22 +03:00
parent 23a5ed71de
commit a32c702dbd

View File

@ -791,7 +791,9 @@ void CL_ParseResourceRequest( sizebuf_t *msg )
MSG_WriteBytes( &sbuf, cl.resourcelist[i].rgucMD5_hash, 16 );
}
if( MSG_GetNumBytesWritten( &sbuf ) > 0 )
// a1ba: useless check? MSG_BeginClientCmd and MSG_WriteShort will always
// write to the buffer
// if( MSG_GetNumBytesWritten( &sbuf ) > 0 )
{
Netchan_CreateFragments( &cls.netchan, &sbuf );
Netchan_FragSend( &cls.netchan );