Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove old network code (#5921)
  • Loading branch information
red-001 authored and nerzhul committed Jun 6, 2017
1 parent dfd79c0 commit a6678d6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/network/serverpackethandler.cpp
Expand Up @@ -677,17 +677,6 @@ void Server::handleCommand_RequestMedia(NetworkPacket* pkt)
void Server::handleCommand_ClientReady(NetworkPacket* pkt)
{
u16 peer_id = pkt->getPeerId();
u16 peer_proto_ver = getClient(peer_id, CS_InitDone)->net_proto_version;

// clients <= protocol version 22 did not send ready message,
// they're already initialized
if (peer_proto_ver <= 22) {
infostream << "Client sent message not expected by a "
<< "client using protocol version <= 22,"
<< "disconnecting peer_id: " << peer_id << std::endl;
m_con.DisconnectPeer(peer_id);
return;
}

PlayerSAO* playersao = StageTwoClientInit(peer_id);

Expand Down

0 comments on commit a6678d6

Please sign in to comment.