From 208da05ae612c118f1f6d91dca7bbd8670cf2897 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Nov 2014 17:19:44 +0300 Subject: eathena: add packets SMSG_SERVER_VERSION_RESPONSE 0x7531 and CMSG_SERVER_VERSION_REQUEST 0x7530 --- src/net/eathena/network.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/network.cpp') 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(msgId) + if (msgId == SMSG_SERVER_VERSION_RESPONSE) + { + len = 10; + } + else if (msgId >= 0 && static_cast(msgId) < packet_lengths_size) { len = packet_lengths[msgId]; -- cgit v1.2.3-60-g2f50