mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix tools compilation
This commit is contained in:
parent
1221b1f11c
commit
e585b1f2b8
|
@ -50,6 +50,8 @@ void Run(unsigned short Port, NETADDR Dest)
|
|||
char aBuffer[1024*2];
|
||||
int ID = 0;
|
||||
int Delaycounter = 0;
|
||||
MMSGS m;
|
||||
net_init_mmsgs(&m);
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
@ -67,7 +69,7 @@ void Run(unsigned short Port, NETADDR Dest)
|
|||
// fetch data
|
||||
int DataTrash = 0;
|
||||
NETADDR From;
|
||||
int Bytes = net_udp_recv(Socket, &From, aBuffer, 1024*2);
|
||||
int Bytes = net_udp_recv(Socket, &From, aBuffer, 1024*2, &m);
|
||||
if(Bytes <= 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue