From 3fb0d2fb65c968f91c333a1d31d2d7a1a02ab7d1 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 15 Jan 2011 03:28:19 +0200 Subject: Players are left on server while server is running. No passwords yet. --- src/client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 103f20c3c..3853c25e5 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -568,7 +568,7 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id) our_peer_id = m_con.GetPeerID(); } // Cancel if we don't have a peer id - if(our_peer_id == PEER_ID_NEW){ + if(our_peer_id == PEER_ID_INEXISTENT){ dout_client<peer_id == PEER_ID_NEW) + if(myplayer->peer_id == PEER_ID_INEXISTENT) myplayer->peer_id = our_peer_id; // Check that an existing peer_id is the same as the connection's assert(myplayer->peer_id == our_peer_id); -- cgit v1.2.3