Commit 76d61cf1 authored by Edoardo Lolletti's avatar Edoardo Lolletti Committed by GitHub

Update duelclient.cpp

parent 1637e7a1
......@@ -4031,9 +4031,9 @@ void DuelClient::BroadcastReply(evutil_socket_t fd, short events, void * arg) {
socklen_t sz = sizeof(sockaddr_in);
char buf[256];
/*int ret = */recvfrom(fd, buf, 256, 0, (sockaddr*)&bc_addr, &sz);
if(is_closing || pHP->identifier == NETWORK_SERVER_ID)
return;
HostPacket* pHP = (HostPacket*)buf;
if(is_closing || pHP->identifier != NETWORK_SERVER_ID)
return;
if(pHP->version != PRO_VERSION)
return;
unsigned int ipaddr = bc_addr.sin_addr.s_addr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment