From 14e612249c44eb0d9c4d00df00d5da2e18438729 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 14 Jul 2007 22:33:02 +0000 Subject: [PATCH] bug in the network that prevents clients to join again --- src/engine/network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/network.cpp b/src/engine/network.cpp index 037c6ffcc..3abe44b0a 100644 --- a/src/engine/network.cpp +++ b/src/engine/network.cpp @@ -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;