mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Implement/match CChatWindow::AddChatMessage; the control-char scrub is written out again instead of calling ReplaceControlChars
This commit is contained in:
1 parent
13e0a5e9e8
commit
b6e839d49f
2 files changed
+19
-1
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user