mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2164
2164: Fix empty sound (fixes #2163) r=heinrich5991 a=def- The problem was that the string is empty after going through the trim, thus the main displaying loop doesn't run, but the sound still does. Verified that it works. Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
commit
295a479db5
|
@ -581,6 +581,11 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
|
|||
|
||||
bool Highlighted = false;
|
||||
char *p = const_cast<char*>(pLine);
|
||||
|
||||
// Only empty string left
|
||||
if(*p == 0)
|
||||
return;
|
||||
|
||||
while(*p)
|
||||
{
|
||||
Highlighted = false;
|
||||
|
|
Loading…
Reference in a new issue