mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Don't highlight echo messages (fixes #3554)
This commit is contained in:
parent
f08812b06a
commit
c30b596dab
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue