浏览代码

Follow up to 0dc5aa4
* Fixed small bug display messages in chat color for client 2014-10-22

icxbb-xx 10 年之前
父节点
当前提交
bd1b07285b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/map/clif.c

+ 2 - 1
src/map/clif.c

@@ -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) {