mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
cl_c2sdupe for nq, too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5951 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
bd72a60c98
commit
f4ec928c2d
1 changed files with 8 additions and 2 deletions
|
@ -695,8 +695,14 @@ int Netchan_Transmit (netchan_t *chan, int length, qbyte *data, int rate)
|
|||
SZ_Write (&send, data, length);
|
||||
|
||||
*(int*)send_buf = BigLong(NETFLAG_UNRELIABLE | send.cursize);
|
||||
NET_SendPacket (chan->sock, send.cursize, send.data, &chan->remote_address);
|
||||
sentsize += send.cursize;
|
||||
for (i = -1, e = NETERR_SENT; i < dupes && e == NETERR_SENT; i++)
|
||||
e = NET_SendPacket (chan->sock, send.cursize, send.data, &chan->remote_address);
|
||||
sentsize += send.cursize*i;
|
||||
if (e == NETERR_MTU && chan->mtu > 560)
|
||||
{
|
||||
Con_Printf("Reducing MSS to %i\n", chan->mtu);
|
||||
chan->mtu -= 10;
|
||||
}
|
||||
|
||||
if (showpackets.value)
|
||||
Con_Printf ("out %s u=%i %i\n"
|
||||
|
|
Loading…
Reference in a new issue