33
44#include " chat.h"
55
6- #include < base/io.h>
7- #include < base/time.h>
8-
96#include " entity/entity.h"
107#include " tclient/bindchat.h"
118#include " tclient/warlist.h"
129
10+ #include < base/io.h>
11+ #include < base/time.h>
12+
1313#include < engine/client/client.h>
1414#include < engine/editor.h>
1515#include < engine/graphics.h>
@@ -684,15 +684,15 @@ void CChat::AddLine(int ClientId, int Team, const char *pLine)
684684 if (ClientId >= 0 && GameClient ()->m_Snap .m_LocalClientId != ClientId)
685685 {
686686 if (g_Config.m_ClShowChatFriends && !GameClient ()->m_aClients [ClientId].m_Friend )
687- {
687+ {
688688 char Message[MAX_LINE_LENGTH];
689689 str_format (Message, sizeof (Message), " %s" , GameClient ()->m_aClients [ClientId].m_aName );
690690 if (Team == 3 )
691691 str_format (Message, sizeof (Message), " ← %s" , GameClient ()->m_aClients [ClientId].m_aName );
692692 Console ()->Print (IConsole::OUTPUT_LEVEL_STANDARD, Message, pLine, Color);
693693 return ;
694694 }
695- else if (GameClient ()->m_WarList .m_WarPlayers [ClientId].IsMuted )
695+ else if (GameClient ()->m_WarList .m_WarPlayers [ClientId].m_IsMuted )
696696 {
697697 char Message[MAX_LINE_LENGTH];
698698 str_format (Message, sizeof (Message), " %s" , GameClient ()->m_aClients [ClientId].m_aName );
@@ -710,7 +710,7 @@ void CChat::AddLine(int ClientId, int Team, const char *pLine)
710710 char Message[MAX_LINE_LENGTH];
711711 str_format (Message, sizeof (Message), " %s" , GameClient ()->m_aClients [ClientId].m_aName );
712712 if (Team == 3 )
713- str_format (Message, sizeof (Message), " ← %s" ,GameClient ()->m_aClients [ClientId].m_aName );
713+ str_format (Message, sizeof (Message), " ← %s" , GameClient ()->m_aClients [ClientId].m_aName );
714714
715715 if (g_Config.m_ClMutedConsoleColor )
716716 Color = color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClMutedColor ));
@@ -1069,7 +1069,7 @@ void CChat::OnPrepareLines(float y)
10691069 {
10701070 TextRender ()->TextEx (&MeasureCursor, g_Config.m_ClSpecPrefix );
10711071 }
1072- if (g_Config.m_ClWarList && g_Config.m_ClWarlistPrefixes && GameClient ()->m_WarList .GetAnyWar (Line.m_ClientId ) && !Line.m_Whisper && !GameClient ()->m_WarList .m_WarPlayers [Line.m_ClientId ].IsMuted ) // E-Client
1072+ if (g_Config.m_ClWarList && g_Config.m_ClWarlistPrefixes && GameClient ()->m_WarList .GetAnyWar (Line.m_ClientId ) && !Line.m_Whisper && !GameClient ()->m_WarList .m_WarPlayers [Line.m_ClientId ].m_IsMuted ) // E-Client
10731073 {
10741074 TextRender ()->TextEx (&MeasureCursor, g_Config.m_ClWarlistPrefix );
10751075 }
@@ -1581,7 +1581,7 @@ bool CChat::ChatDetection(int ClientId, int Team, const char *pLine)
15811581 GameClient ()->ClientMessage (aBuf);
15821582 }
15831583 }
1584- if (Cache.IsMuted )
1584+ if (Cache.m_IsMuted )
15851585 {
15861586 GameClient ()->m_WarList .AddMute (aNewName, true , true );
15871587 str_format (aBuf, sizeof (aBuf), " Auto Added \" %s\" to Temp Mute list" , aNewName);
0 commit comments