1920: Don't highlight window when playing demo (fixes #1919) r=Learath2 a=def-



Co-authored-by: Dennis Felsing <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2019-09-24 14:22:30 +00:00 committed by GitHub
commit ef32fc4bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -700,7 +700,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
{ {
// No sound yet // No sound yet
} }
else if(Highlighted) else if(Highlighted && Client()->State() != IClient::STATE_DEMOPLAYBACK)
{ {
if(Now-m_aLastSoundPlayed[CHAT_HIGHLIGHT] >= time_freq()*3/10) if(Now-m_aLastSoundPlayed[CHAT_HIGHLIGHT] >= time_freq()*3/10)
{ {