summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-25 23:37:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-25 23:37:28 +0300
commit60757643df53ff5d9d6aa361486348bc6d4bf0f2 (patch)
tree13cf871ba389238ea8c8831f897b6b1135b0ba8e /src/net/eathena/loginhandler.cpp
parent32e6e1748c3aa26a55ce4f7281107c4334c80ef3 (diff)
downloadplus-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.gz
plus-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.bz2
plus-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.xz
plus-60757643df53ff5d9d6aa361486348bc6d4bf0f2.zip
From eAthena netcode remove some evol packets implimentations.
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r--src/net/eathena/loginhandler.cpp34
1 files changed, 9 insertions, 25 deletions
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;