diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-06 01:53:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-06 01:53:04 +0300 |
commit | 0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52 (patch) | |
tree | 70d71ee1120f432dc73a29c57f80b1261e6aadbf /src/net | |
parent | e93baadf823b262bb37b3e9013c75240630916dd (diff) | |
download | manaplus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.tar.gz manaplus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.tar.bz2 manaplus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.tar.xz manaplus-0f2f8af5404b89e19dbbf7ce24f15b8dc6262b52.zip |
Update packet SMSG_FORMAT_MESSAGE_STRING_COLOR 0x0a6f.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/chatrecv.cpp | 5 |
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( |