Remove old network code (#5921)
authorred-001 <red-001@outlook.ie>
Tue, 6 Jun 2017 05:57:35 +0000 (06:57 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 6 Jun 2017 05:57:35 +0000 (07:57 +0200)
src/network/serverpackethandler.cpp

index 098c6e11ec78f18dd0176c2384548a53b4eaec24..90b747e46357114043474db019e5eda85a790c2e 100644 (file)
@@ -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);