diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-05 18:04:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-05 18:12:39 +0300 |
commit | 2977a6e00056647c1637db79ae51a151086203cf (patch) | |
tree | b00906b3266b9ec61bb84082ee49a41357d8be16 /src/net/ea | |
parent | 4c41a3eaa82e2e11f2ee4da3513f25e1095c3a12 (diff) | |
download | mv-2977a6e00056647c1637db79ae51a151086203cf.tar.gz mv-2977a6e00056647c1637db79ae51a151086203cf.tar.bz2 mv-2977a6e00056647c1637db79ae51a151086203cf.tar.xz mv-2977a6e00056647c1637db79ae51a151086203cf.zip |
Add packet SMSG_LOGIN_DATA 0x0ac4.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/loginrecv.cpp | 43 | ||||
-rw-r--r-- | src/net/ea/loginrecv.h | 1 |
2 files changed, 0 insertions, 44 deletions
diff --git a/src/net/ea/loginrecv.cpp b/src/net/ea/loginrecv.cpp index 6c6e1bad1..10316a978 100644 --- a/src/net/ea/loginrecv.cpp +++ b/src/net/ea/loginrecv.cpp @@ -23,9 +23,6 @@ #include "net/ea/loginrecv.h" #include "client.h" -#include "configuration.h" - -#include "being/being.h" #include "fs/paths.h" @@ -67,46 +64,6 @@ void LoginRecv::processUpdateHost(Net::MessageIn &msg) mUpdateHost.c_str()); } -void LoginRecv::processLoginData(Net::MessageIn &msg) -{ - msg.readInt16("len"); - - loginHandler->clearWorlds(); - - const int worldCount = (msg.getLength() - 47) / 32; - - mToken.session_ID1 = msg.readInt32("session id1"); - mToken.account_ID = msg.readBeingId("accound id"); - mToken.session_ID2 = msg.readInt32("session id2"); - msg.readInt32("old ip"); - loginData.lastLogin = msg.readString(24, "last login"); - msg.readInt16("unused"); - - // reserve bits for future usage - mToken.sex = Being::intToGender(CAST_U8( - msg.readUInt8("gender") & 3U)); - - for (int i = 0; i < worldCount; i++) - { - WorldInfo *const world = new WorldInfo; - - world->address = msg.readInt32("ip address"); - world->port = msg.readInt16("port"); - world->name = msg.readString(20, "name"); - world->online_users = msg.readInt16("online number"); - config.setValue("updatehost", mUpdateHost); - world->updateHost = mUpdateHost; - msg.readInt16("maintenance"); - msg.readInt16("new"); - - logger->log("Network: Server: %s (%s:%d)", world->name.c_str(), - ipToString(world->address), world->port); - - mWorlds.push_back(world); - } - client->setState(State::WORLD_SELECT); -} - void LoginRecv::processLoginError(Net::MessageIn &msg) { const uint8_t code = msg.readUInt8("error"); diff --git a/src/net/ea/loginrecv.h b/src/net/ea/loginrecv.h index 239fb3bbd..80ac08e44 100644 --- a/src/net/ea/loginrecv.h +++ b/src/net/ea/loginrecv.h @@ -43,7 +43,6 @@ namespace Ea extern bool mRegistrationEnabled; void processUpdateHost(Net::MessageIn &msg); - void processLoginData(Net::MessageIn &msg); void processLoginError(Net::MessageIn &msg); } // namespace LoginRecv } // namespace Ea |