Follow up to 0dc5aa4

* Fixed small bug display messages in chat color for client 2014-10-22
This commit is contained in:
icxbb-xx 2015-06-26 09:10:24 +07:00
parent 633a3ffbb9
commit bd1b07285b

View File

@ -5761,7 +5761,8 @@ void clif_displaymessage(const int fd, const char* mes)
/** for some reason game client crashes depending on message pattern (only for this packet) **/
/** so we redirect to ZC_NPC_CHAT **/
//clif_colormes(fd, color_table[COLOR_DEFAULT], mes);
unsigned long color = color_table[COLOR_DEFAULT]; // RGB to BGR
unsigned long color = (color_table[COLOR_DEFAULT] & 0x0000FF) << 16 | (color_table[COLOR_DEFAULT] & 0x00FF00) | (color_table[COLOR_DEFAULT] & 0xFF0000) >> 16; // RGB to BGR
int len = strnlen(mes, 255);
if (len > 0) {