mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-31 12:40:43 +00:00
Fixed challenged acks.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2980 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
250d6ffeb8
commit
9b33803764
1 changed files with 4 additions and 1 deletions
|
@ -1998,6 +1998,7 @@ void CL_ConnectionlessPacket (void)
|
||||||
if (c == A2A_PING)
|
if (c == A2A_PING)
|
||||||
{
|
{
|
||||||
char data[256];
|
char data[256];
|
||||||
|
int len;
|
||||||
|
|
||||||
data[0] = 0xff;
|
data[0] = 0xff;
|
||||||
data[1] = 0xff;
|
data[1] = 0xff;
|
||||||
|
@ -2010,6 +2011,7 @@ void CL_ConnectionlessPacket (void)
|
||||||
{
|
{
|
||||||
Con_TPrintf (TL_ST_COLON, NET_AdrToString (net_from));
|
Con_TPrintf (TL_ST_COLON, NET_AdrToString (net_from));
|
||||||
Con_TPrintf (TLC_A2A_PING);
|
Con_TPrintf (TLC_A2A_PING);
|
||||||
|
len = 6;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2018,9 +2020,10 @@ void CL_ConnectionlessPacket (void)
|
||||||
//secondly, it needs a copy of the realip ident, so you can't report a different player's client (you would need access to their ip).
|
//secondly, it needs a copy of the realip ident, so you can't report a different player's client (you would need access to their ip).
|
||||||
data[5] = ' ';
|
data[5] = ' ';
|
||||||
sprintf(data+6, "%i %i", atoi(MSG_ReadString()), cls.realip_ident);
|
sprintf(data+6, "%i %i", atoi(MSG_ReadString()), cls.realip_ident);
|
||||||
|
len = strlen(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
NET_SendPacket (NS_CLIENT, 6, &data, net_from);
|
NET_SendPacket (NS_CLIENT, len, &data, net_from);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue