aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-06-06 06:57:35 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-06 07:57:35 +0200
commita6678d6e5a46c847c298bdca01e4499b8d601337 (patch)
tree9c6d6e34d255a8e95e001785edf09614749f295d
parentdfd79c086b88e3b4d34def44253fb053b4fdeedd (diff)
downloadminetest-a6678d6e5a46c847c298bdca01e4499b8d601337.tar.gz
minetest-a6678d6e5a46c847c298bdca01e4499b8d601337.tar.bz2
minetest-a6678d6e5a46c847c298bdca01e4499b8d601337.zip
Remove old network code (#5921)
-rw-r--r--src/network/serverpackethandler.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp
index 098c6e11e..90b747e46 100644
--- a/src/network/serverpackethandler.cpp
+++ b/src/network/serverpackethandler.cpp
@@ -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);