From e06fb2b60531a730d63a30ac195dccaccb97d7dc Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Tue, 24 Sep 2019 11:00:30 +0200 Subject: [PATCH] Don't highlight window when playing demo (fixes #1919) --- src/game/client/components/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 3db3c8104..08aa0367f 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -700,7 +700,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine) { // No sound yet } - else if(Highlighted) + else if(Highlighted && Client()->State() != IClient::STATE_DEMOPLAYBACK) { if(Now-m_aLastSoundPlayed[CHAT_HIGHLIGHT] >= time_freq()*3/10) {