[saco] Implement/match CChatWindow::ReplaceControlChars; its range test is signed, unlike the ReplaceUnprintableChars in game/util.cpp

This commit is contained in:
ricardoofnl
2026-09-04 22:14:57 +07:00
parent d9312cbda5
commit 272d63d75b
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -184,3 +184,18 @@ void CChatWindow::SetPageSize(int iPageSize)
m_bRedraw = 1;
}
}
//----------------------------------------------------
void CChatWindow::ReplaceControlChars(char *szString)
{
if(*szString)
{
do
{
if(*szString > 0 && *szString < 32)
*szString = 32;
}
while(*++szString);
}
}