mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-26 08:57:24 +00:00
forgot a line on last commit, reset color support
This commit is contained in:
parent
abb96b44cf
commit
ff8aba51ea
|
|
@ -6674,6 +6674,7 @@ wstring CMinecraftApp::FormatChatMessage(const wstring& desc, bool applyColor)
|
|||
|
||||
swprintf(replacements, 64, (applyColor ? colorFormatString.data() : L""), GetHTMLColour(eHTMLColor_f), 0xFFFFFFFF);
|
||||
results = replaceAll(results, L"§f", replacements);
|
||||
results = replaceAll(results, L"§r", replacements); //we only support color so reset is the same as white color
|
||||
|
||||
std::wsmatch match;
|
||||
while (std::regex_search(results, match, IDS_Pattern)) {
|
||||
|
|
|
|||
|
|
@ -1566,7 +1566,7 @@ void Gui::addMessage(const wstring& _string,int iPad,bool bIsDeathMessage)
|
|||
}
|
||||
|
||||
// if a space was found, include the space on this line
|
||||
if(iLast!=i)
|
||||
if(iLast!=cutOffset)
|
||||
{
|
||||
iLast++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue