mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match CChatWindow::ReplaceControlChars; its range test is signed, unlike the ReplaceUnprintableChars in game/util.cpp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user