mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match CChatWindow::AddClientMessage; it drops anything over 144 chars and calls ReplaceControlChars out of line
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
#include "main.h"
|
||||
#include "game/util.h"
|
||||
|
||||
extern CConfig *pConfig;
|
||||
extern CCmdWindow *pCmdWindow;
|
||||
@@ -264,3 +265,15 @@ void CChatWindow::AddChatMessage(PCHAR szName, DWORD dwColor, PCHAR szText)
|
||||
|
||||
sub_10067BE0(2, szText, szName, m_dwChatTextColor, dwColor);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CChatWindow::AddClientMessage(DWORD dwColor, CHAR *szMessage)
|
||||
{
|
||||
if(strlen(szMessage) <= 144)
|
||||
{
|
||||
unnamed_100B6100(szMessage,255);
|
||||
ReplaceControlChars(szMessage);
|
||||
sub_10067BE0(4, szMessage, 0, (dwColor >> 8)|0xFF000000, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user