mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Remove vote mute after it expired (fixes #1544)
This commit is contained in:
parent
a7f0763e54
commit
09412f43f7
|
@ -866,6 +866,14 @@ void CGameContext::OnTick()
|
|||
m_aMutes[i] = m_aMutes[m_NumMutes];
|
||||
}
|
||||
}
|
||||
for(int i = 0; i < m_NumVoteMutes; i++)
|
||||
{
|
||||
if(m_aVoteMutes[i].m_Expire <= Server()->Tick())
|
||||
{
|
||||
m_NumVoteMutes--;
|
||||
m_aVoteMutes[i] = m_aVoteMutes[m_NumVoteMutes];
|
||||
}
|
||||
}
|
||||
|
||||
if(Server()->Tick() % (g_Config.m_SvAnnouncementInterval * Server()->TickSpeed() * 60) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue