2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-13 03:56:26 +01:00

engine: common: net_chan: as we expect pfnBlockSize to be always set, use it to determine if netchan was initialized or not

This commit is contained in:
Alibek Omarov 2024-10-21 02:30:45 +03:00
parent d0f3a6f74b
commit a3e26a21a7

View File

@ -1521,6 +1521,9 @@ void Netchan_TransmitBits( netchan_t *chan, int length, byte *data )
return;
}
if( chan->pfnBlockSize == NULL ) // not initialized
return;
// if the remote side dropped the last reliable message, resend it
send_reliable = false;