diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-06 17:19:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-06 17:29:51 +0300 |
commit | 208da05ae612c118f1f6d91dca7bbd8670cf2897 (patch) | |
tree | f6e4395b08cce28ac52a20ba3dbe2b78322c652b /src/net/eathena/network.cpp | |
parent | 4a688fa73264495d6f0db661e6d3d5c4630ed6df (diff) | |
download | manaverse-208da05ae612c118f1f6d91dca7bbd8670cf2897.tar.gz manaverse-208da05ae612c118f1f6d91dca7bbd8670cf2897.tar.bz2 manaverse-208da05ae612c118f1f6d91dca7bbd8670cf2897.tar.xz manaverse-208da05ae612c118f1f6d91dca7bbd8670cf2897.zip |
eathena: add packets SMSG_SERVER_VERSION_RESPONSE 0x7531
and CMSG_SERVER_VERSION_REQUEST 0x7530
Diffstat (limited to 'src/net/eathena/network.cpp')
-rw-r--r-- | src/net/eathena/network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp index ff4bfce14..f0f727462 100644 --- a/src/net/eathena/network.cpp +++ b/src/net/eathena/network.cpp @@ -27,6 +27,7 @@ #include "net/eathena/messagehandler.h" #include "net/eathena/messagein.h" #include "net/eathena/packets.h" +#include "net/eathena/protocol.h" #include "utils/delete2.h" @@ -139,7 +140,11 @@ bool Network::messageReady() if (mInSize >= 2) { const int msgId = readWord(0); - if (msgId >= 0 && static_cast<unsigned int>(msgId) + if (msgId == SMSG_SERVER_VERSION_RESPONSE) + { + len = 10; + } + else if (msgId >= 0 && static_cast<unsigned int>(msgId) < packet_lengths_size) { len = packet_lengths[msgId]; |