diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-06 21:58:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-06 22:15:11 +0300 |
commit | e34a496ae3b6fbb98115b9fe524cd202ddc8f795 (patch) | |
tree | ea3eec00d1296fb0a58f8bd9aa5bddcc219d1e61 /src/net/eathena/beingrecv.cpp | |
parent | 24cdc3eb7a613344c655560c0ef43f8611acdc45 (diff) | |
download | manaverse-e34a496ae3b6fbb98115b9fe524cd202ddc8f795.tar.gz manaverse-e34a496ae3b6fbb98115b9fe524cd202ddc8f795.tar.bz2 manaverse-e34a496ae3b6fbb98115b9fe524cd202ddc8f795.tar.xz manaverse-e34a496ae3b6fbb98115b9fe524cd202ddc8f795.zip |
Add packet SMSG_SOLVE_CHAR_NAME 0x0af7.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index 4fdcf7ad3..627d9d9a1 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -72,6 +72,8 @@ extern int serverVersion; extern OkDialog *deathNotice; +extern bool packets_re; +extern bool packets_main; namespace EAthena { @@ -2112,6 +2114,14 @@ void BeingRecv::processSkillCancel(Net::MessageIn &msg) void BeingRecv::processSolveCharName(Net::MessageIn &msg) { + if ((packets_re == true && msg.getVersion() >= 20180221) || + (packets_main == true && msg.getVersion() >= 20180307)) + { + const int flag = msg.readInt16("flag"); + // name request errors + if (flag != 3) + return; + } const int id = msg.readInt32("char id"); if (actorManager == nullptr) { |