summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/gamehandler.cpp4
-rw-r--r--src/net/eathena/loginhandler.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index 8baae162f..d19cec06b 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -26,6 +26,8 @@
#include "being/localplayer.h"
+#include "net/serverfeatures.h"
+
#include "net/eathena/loginhandler.h"
#include "net/eathena/messageout.h"
#include "net/eathena/network.h"
@@ -129,6 +131,8 @@ void GameHandler::connect()
outMsg.writeInt32(token.session_ID1, "session key1");
outMsg.writeInt32(0, "tick");
outMsg.writeInt8(Being::genderToInt(token.sex), "sex");
+ if (serverFeatures->haveMapServerVersion())
+ loginHandler->sendVersion();
/*
if (localPlayer)
{
diff --git a/src/net/eathena/loginhandler.h b/src/net/eathena/loginhandler.h
index 8e30e908a..4f8b3110c 100644
--- a/src/net/eathena/loginhandler.h
+++ b/src/net/eathena/loginhandler.h
@@ -60,7 +60,7 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
const std::string &restrict newPassword)
const override final;
- void sendVersion() const;
+ void sendVersion() const override final;
ServerInfo *getCharServer() const override final A_WARN_UNUSED;