forgot a line on last commit, reset color support

This commit is contained in:
DrPerkyLegit 2026-04-16 01:24:13 -04:00
parent abb96b44cf
commit ff8aba51ea
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -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++;
}