bug in the network that prevents clients to join again

This commit is contained in:
Magnus Auvinen 2007-07-14 22:33:02 +00:00
parent adc9b9d9c0
commit 14e612249c

View file

@ -487,7 +487,8 @@ int net_server_recv(NETSERVER *s, NETPACKET *packet)
// check if we already got this client
for(int i = 0; i < NETWORK_MAX_CLIENTS; i++)
{
if(net_addr4_cmp(&s->slots[i].conn.peeraddr, &addr) == 0)
if(s->slots[i].conn.state != NETWORK_CONNSTATE_OFFLINE &&
net_addr4_cmp(&s->slots[i].conn.peeraddr, &addr) == 0)
{
found = 1; // silent ignore.. we got this client already
break;