engine: net_encode.c, net_buffer.c inline functions optimization

This commit is contained in:
Crow-bar
2022-10-04 10:31:33 +03:00
parent 01affdcbbd
commit e66400ca39
3 changed files with 9 additions and 17 deletions
+1 -2
View File
@@ -94,14 +94,13 @@ void MSG_Clear( sizebuf_t *sb )
sb->bOverflow = false;
}
#if XASH_EXT_OPT != 2
static qboolean MSG_Overflow( sizebuf_t *sb, int nBits )
{
if( sb->iCurBit + nBits > sb->nDataBits )
sb->bOverflow = true;
return sb->bOverflow;
}
#endif
qboolean MSG_CheckOverflow( sizebuf_t *sb )
{
return MSG_Overflow( sb, 0 );