Browse Source

also for color

Laserlicht 1 năm trước cách đây
mục cha
commit
bee5cd00cc
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      client/windows/CMessage.cpp

+ 3 - 0
client/windows/CMessage.cpp

@@ -133,7 +133,10 @@ std::vector<std::string> CMessage::breakText(std::string text, size_t maxLineWid
 			{
 				currPos = wordBreak;
 				if(text.substr(0, currPos).find('{') == std::string::npos)
+				{
 					opened = false;
+					color = "";
+				}
 			}
 			else
 				currPos -= symbolSize;