engine: client: remove unncesseray int <-> qboolean branch in CL_GetMessage
This commit is contained in:
parent
af332eb8ac
commit
c4f71f1a44
1 changed files with 3 additions and 9 deletions
|
@ -2602,18 +2602,12 @@ CL_GetMessage
|
||||||
Handles recording and playback of demos, on top of NET_ code
|
Handles recording and playback of demos, on top of NET_ code
|
||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
static int CL_GetMessage( byte *data, size_t *length )
|
static qboolean CL_GetMessage( byte *data, size_t *length )
|
||||||
{
|
{
|
||||||
if( cls.demoplayback )
|
if( cls.demoplayback )
|
||||||
{
|
return CL_DemoReadMessage( data, length );
|
||||||
if( CL_DemoReadMessage( data, length ))
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( NET_GetPacket( NS_CLIENT, &net_from, data, length ))
|
return NET_GetPacket( NS_CLIENT, &net_from, data, length );
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CL_ParseNetMessage( sizebuf_t *msg, void (*parsefn)( sizebuf_t * ))
|
static void CL_ParseNetMessage( sizebuf_t *msg, void (*parsefn)( sizebuf_t * ))
|
||||||
|
|
Loading…
Add table
Reference in a new issue