about summary refs log tree commit diff
path: root/src/engine/network.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-14 22:33:02 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-14 22:33:02 +0000
commit14e612249c44eb0d9c4d00df00d5da2e18438729 (patch)
tree3f91437b073279e140f6140110ba3dd1b1f03b41 /src/engine/network.cpp
parentadc9b9d9c02d25d11e34b589937f22ca15dc0c2c (diff)
downloadzcatch-14e612249c44eb0d9c4d00df00d5da2e18438729.tar.gz
zcatch-14e612249c44eb0d9c4d00df00d5da2e18438729.zip
bug in the network that prevents clients to join again
Diffstat (limited to 'src/engine/network.cpp')
-rw-r--r--src/engine/network.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/network.cpp b/src/engine/network.cpp
index 037c6ffc..3abe44b0 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;