mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix tools
This commit is contained in:
parent
4b92e72763
commit
76c32b2b1f
|
@ -69,7 +69,8 @@ void Run(unsigned short Port, NETADDR Dest)
|
|||
// fetch data
|
||||
int DataTrash = 0;
|
||||
NETADDR From;
|
||||
int Bytes = net_udp_recv(Socket, &From, aBuffer, 1024*2, &m);
|
||||
unsigned char *pData;
|
||||
int Bytes = net_udp_recv(Socket, &From, aBuffer, 1024*2, &m, &pData);
|
||||
if(Bytes <= 0)
|
||||
break;
|
||||
|
||||
|
@ -107,7 +108,7 @@ void Run(unsigned short Port, NETADDR Dest)
|
|||
p->m_Timestamp = time_get();
|
||||
p->m_DataSize = Bytes;
|
||||
p->m_ID = ID++;
|
||||
mem_copy(p->m_aData, aBuffer, Bytes);
|
||||
mem_copy(p->m_aData, pData, Bytes);
|
||||
|
||||
if(ID > 20 && Bytes > 6 && DataTrash)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue