mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #2951 from def-/pr-repeated
Reset m_TimesRepeated on new line
This commit is contained in:
commit
1a7eed4937
|
@ -679,6 +679,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
|
||||||
m_CurrentLine = (m_CurrentLine + 1) % MAX_LINES;
|
m_CurrentLine = (m_CurrentLine + 1) % MAX_LINES;
|
||||||
|
|
||||||
pCurrentLine = &m_aLines[m_CurrentLine];
|
pCurrentLine = &m_aLines[m_CurrentLine];
|
||||||
|
pCurrentLine->m_TimesRepeated = 0;
|
||||||
pCurrentLine->m_Time = time();
|
pCurrentLine->m_Time = time();
|
||||||
pCurrentLine->m_YOffset[0] = -1.0f;
|
pCurrentLine->m_YOffset[0] = -1.0f;
|
||||||
pCurrentLine->m_YOffset[1] = -1.0f;
|
pCurrentLine->m_YOffset[1] = -1.0f;
|
||||||
|
|
Loading…
Reference in a new issue