From 60757643df53ff5d9d6aa361486348bc6d4bf0f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jun 2012 23:37:28 +0300 Subject: From eAthena netcode remove some evol packets implimentations. --- src/net/eathena/loginhandler.cpp | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) (limited to 'src/net/eathena/loginhandler.cpp') diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 0ddc64a7b..68555d7c5 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -159,31 +159,15 @@ void LoginHandler::requestUpdateHosts() void LoginHandler::processServerVersion(Net::MessageIn &msg) { - char b1 = msg.readInt8(); // -1 - char b2 = msg.readInt8(); // E - char b3 = msg.readInt8(); // V - char b4 = msg.readInt8(); // L - if (b1 == -1 && b2 == 'E' && b3 == 'V' && b4 == 'L') - { - unsigned int options = msg.readInt8(); - mRegistrationEnabled = options; - msg.skip(2); // 0 unused - serverVersion = msg.readInt8(); - if (serverVersion >= 5) - requestUpdateHosts(); - } - else - { - unsigned int options = msg.readInt32(); - mRegistrationEnabled = options; - serverVersion = 0; - } - logger->log("Server version: %d", serverVersion); - if (serverVersion < 5) - { - if (Client::getState() != STATE_LOGIN) - Client::setState(STATE_LOGIN); - } + msg.readInt8(); + msg.readInt8(); + msg.readInt8(); + msg.readInt8(); + msg.readInt32(); + mRegistrationEnabled = true; + serverVersion = 0; + if (Client::getState() != STATE_LOGIN) + Client::setState(STATE_LOGIN); // Leave this last mVersionResponse = true; -- cgit v1.2.3-70-g09d2