Skip to content

Commit

Permalink
engine: client: avoid useless check on empty clc_resourcelist, which …
Browse files Browse the repository at this point in the history
…will never be false
  • Loading branch information
a1batross committed Oct 15, 2024
1 parent 23a5ed7 commit a32c702
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/client/cl_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit a32c702

Please sign in to comment.