From 0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Dec 2018 01:53:04 +0300 Subject: Update packet SMSG_FORMAT_MESSAGE_STRING_COLOR 0x0a6f. --- src/net/eathena/chatrecv.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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( -- cgit v1.2.3-70-g09d2