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

This commit is contained in:
ricardoofnl committed 2026-09-04 22:28:01 +07:00
1 parent 13e0a5e9e8
commit b6e839d49f
2 files changed
+19 -1

No files matched your search

+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);
}
+1 -1
View File
@@ -67,7 +67,7 @@ public:
public:
int sub_10067BE0(int a1, char *a2, int a3, int a4, int a5); // .text:10067BE0
int sub_10067BE0(int a1, char *a2, char *a3, DWORD a4, DWORD a5); // .text:10067BE0
void AddChatMessage(PCHAR szName, DWORD dwColor, PCHAR szText); // .text:10068020