mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-03-09 20:21:10 +00:00
Fix zero maxsize for reliable
This commit is contained in:
parent
31a53f4842
commit
2b1d4f4377
@ -1462,6 +1462,8 @@ void Netchan_TransmitBits( netchan_t *chan, int length, byte *data )
|
|||||||
|
|
||||||
if( chan->pfnBlockSize )
|
if( chan->pfnBlockSize )
|
||||||
maxsize = chan->pfnBlockSize( chan->client, FRAGSIZE_SPLIT );
|
maxsize = chan->pfnBlockSize( chan->client, FRAGSIZE_SPLIT );
|
||||||
|
if( maxsize == 0 )
|
||||||
|
maxsize = MAX_RELIABLE_PAYLOAD;
|
||||||
|
|
||||||
// if the reliable buffer has gotten too big, queue it at the end of everything and clear out buffer
|
// if the reliable buffer has gotten too big, queue it at the end of everything and clear out buffer
|
||||||
if( MSG_GetNumBytesWritten( &chan->message ) + (((uint)length) >> 3) > maxsize )
|
if( MSG_GetNumBytesWritten( &chan->message ) + (((uint)length) >> 3) > maxsize )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user