Don't highlight echo messages (fixes #3554)

This commit is contained in:
def 2021-01-28 11:21:55 +01:00
parent f08812b06a
commit c30b596dab

View file

@ -722,7 +722,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
// check for highlighted name
if(Client()->State() != IClient::STATE_DEMOPLAYBACK)
{
if(ClientID != m_pClient->m_LocalIDs[0])
if(ClientID >= 0 && ClientID != m_pClient->m_LocalIDs[0])
{
// main character
if(LineShouldHighlight(pLine, m_pClient->m_aClients[m_pClient->m_LocalIDs[0]].m_aName))