mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +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);
|
SZ_Write (&send, data, length);
|
||||||
|
|
||||||
*(int*)send_buf = BigLong(NETFLAG_UNRELIABLE | send.cursize);
|
*(int*)send_buf = BigLong(NETFLAG_UNRELIABLE | send.cursize);
|
||||||
NET_SendPacket (chan->sock, send.cursize, send.data, &chan->remote_address);
|
for (i = -1, e = NETERR_SENT; i < dupes && e == NETERR_SENT; i++)
|
||||||
sentsize += send.cursize;
|
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)
|
if (showpackets.value)
|
||||||
Con_Printf ("out %s u=%i %i\n"
|
Con_Printf ("out %s u=%i %i\n"
|
||||||
|
|
Loading…
Reference in a new issue