[saco] Implement/match CChatWindow::AddChatMessage; the control-char scrub is written out again instead of calling ReplaceControlChars

This commit is contained in:
ricardoofnl
2026-09-04 22:22:03 +07:00
parent 13e0a5e9e8
commit b6e839d49f
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -246,3 +246,21 @@ void CChatWindow::OnMouseWheel(int nDelta)
m_pScrollBar->Scroll(-(nDelta*nScrollLines));
}
}
//----------------------------------------------------
void CChatWindow::AddChatMessage(PCHAR szName, DWORD dwColor, PCHAR szText)
{
char *p = szText;
if(szText[0])
{
do
{
if(*p > 0 && *p < 32)
*p = 32;
}
while(*++p);
}
sub_10067BE0(2, szText, szName, m_dwChatTextColor, dwColor);
}