mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Reset m_TimesRepeated on new line
otherwise random lines will mistakenly show [2]
This commit is contained in:
parent
113ec2511a
commit
90211d18ef
|
@ -679,6 +679,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
|
|||
m_CurrentLine = (m_CurrentLine + 1) % MAX_LINES;
|
||||
|
||||
pCurrentLine = &m_aLines[m_CurrentLine];
|
||||
pCurrentLine->m_TimesRepeated = 0;
|
||||
pCurrentLine->m_Time = time();
|
||||
pCurrentLine->m_YOffset[0] = -1.0f;
|
||||
pCurrentLine->m_YOffset[1] = -1.0f;
|
||||
|
|
Loading…
Reference in a new issue