diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-07 00:36:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-07 00:36:23 +0300 |
commit | c6dbf10ed70e6f94d28ad555545b7522ea7348b8 (patch) | |
tree | d6da2e8497fbf8a85329217f2823b0f029c6163e /src/net/eathena/gamehandler.cpp | |
parent | e899e18fa2bca908251f7f87561561a822c7fe7d (diff) | |
download | manaplus-c6dbf10ed70e6f94d28ad555545b7522ea7348b8.tar.gz manaplus-c6dbf10ed70e6f94d28ad555545b7522ea7348b8.tar.bz2 manaplus-c6dbf10ed70e6f94d28ad555545b7522ea7348b8.tar.xz manaplus-c6dbf10ed70e6f94d28ad555545b7522ea7348b8.zip |
eathena: add support for sending client version to map server.
Diffstat (limited to 'src/net/eathena/gamehandler.cpp')
-rw-r--r-- | src/net/eathena/gamehandler.cpp | 4 |
1 files changed, 4 insertions, 0 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) { |