mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-17 20:58:07 +02:00
also for color
This commit is contained in:
parent
03d03491b5
commit
bee5cd00cc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user