engine: client: avoid useless check on empty clc_resourcelist, which will never be false
This commit is contained in:
parent
23a5ed71de
commit
a32c702dbd
1 changed files with 3 additions and 1 deletions
|
@ -791,7 +791,9 @@ void CL_ParseResourceRequest( sizebuf_t *msg )
|
||||||
MSG_WriteBytes( &sbuf, cl.resourcelist[i].rgucMD5_hash, 16 );
|
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_CreateFragments( &cls.netchan, &sbuf );
|
||||||
Netchan_FragSend( &cls.netchan );
|
Netchan_FragSend( &cls.netchan );
|
||||||
|
|
Loading…
Add table
Reference in a new issue