Remove vote mute after it expired (fixes #1544)

This commit is contained in:
def 2019-03-28 23:35:47 +01:00
parent a7f0763e54
commit 09412f43f7

View file

@ -866,6 +866,14 @@ void CGameContext::OnTick()
m_aMutes[i] = m_aMutes[m_NumMutes]; 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) if(Server()->Tick() % (g_Config.m_SvAnnouncementInterval * Server()->TickSpeed() * 60) == 0)
{ {