summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-06 01:53:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-06 01:53:04 +0300
commit0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52 (patch)
tree70d71ee1120f432dc73a29c57f80b1261e6aadbf
parente93baadf823b262bb37b3e9013c75240630916dd (diff)
downloadplus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.tar.gz
plus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.tar.bz2
plus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.tar.xz
plus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.zip
Update packet SMSG_FORMAT_MESSAGE_STRING_COLOR 0x0a6f.
-rw-r--r--src/net/eathena/chatrecv.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/chatrecv.cpp b/src/net/eathena/chatrecv.cpp
index 87fc6b63e..6fa3893d5 100644
--- a/src/net/eathena/chatrecv.cpp
+++ b/src/net/eathena/chatrecv.cpp
@@ -50,6 +50,8 @@
#include "debug.h"
+extern int packetVersion;
+
namespace EAthena
{
@@ -198,7 +200,8 @@ void ChatRecv::processFormatMessageStringColor(Net::MessageIn &msg)
{
const int strLen = msg.readInt16("len") - 10;
const int msgId = msg.readInt16("msg id");
- msg.readInt32("color");
+ if (packetVersion >= 20160406)
+ msg.readInt32("color");
const std::string message = msg.readString(strLen, "value");
// +++ here need load message from configuration file
const std::string chatMsg = strprintf(