From f39b2c3da93e2f3dccb4c18f4f9f82e30cf5bb20 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 5 Sep 2026 10:07:28 +0700 Subject: [PATCH] [saco] Call `CChatWindow::AddChatMessage` from `FUNC_10017610` and drop the duplicate `FUNC_10068020` declaration --- saco/chatwindow.h | 2 -- saco/net/remoteplayer.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/saco/chatwindow.h b/saco/chatwindow.h index f629cc4..16da6f5 100644 --- a/saco/chatwindow.h +++ b/saco/chatwindow.h @@ -88,8 +88,6 @@ public: int AddDebugMessage(CHAR *szFormat, ...); - int FUNC_10068020(char *szName, int iColor, char *szText); // .text:10068020 - void AddInfoMessage(CHAR *szFormat, ...); // .text:10068070 void AddClientMessage(DWORD dwColor, CHAR *szMessage); // .text:10068170 diff --git a/saco/net/remoteplayer.cpp b/saco/net/remoteplayer.cpp index 6a8c31e..dc1552b 100644 --- a/saco/net/remoteplayer.cpp +++ b/saco/net/remoteplayer.cpp @@ -271,7 +271,7 @@ int CRemotePlayer::FUNC_10016330() void CRemotePlayer::FUNC_10017610(char *szText) { CPlayerPool *pPlayerPool = pNetGame->GetPlayerPool(); - pChatWindow->FUNC_10068020(pPlayerPool->GetPlayerName(m_PlayerID), + pChatWindow->AddChatMessage(pPlayerPool->GetPlayerName(m_PlayerID), (TranslateColorCodeToRGBA(m_PlayerID) >> 8) | 0xFF000000, szText); }