summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
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;