Follow up to 0dc5aa4
* Fixed small bug display messages in chat color for client 2014-10-22
This commit is contained in:
parent
633a3ffbb9
commit
bd1b07285b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user