Veto right for start and join time

This commit is contained in:
def 2016-07-08 18:28:15 +02:00
parent 8b10d15845
commit aab3beb3b0

View file

@ -680,7 +680,8 @@ void CGameContext::OnTick()
if(!m_VoteKick && !m_VoteSpec && m_apPlayers[i] &&
!m_apPlayers[i]->m_Afk && m_apPlayers[i]->GetTeam() != TEAM_SPECTATORS &&
g_Config.m_SvVoteVetoTime &&
(Server()->Tick() - m_apPlayers[i]->m_JoinTick) / (Server()->TickSpeed() * 60) > g_Config.m_SvVoteVetoTime)
((Server()->Tick() - m_apPlayers[i]->m_JoinTick) / (Server()->TickSpeed() * 60) > g_Config.m_SvVoteVetoTime ||
(Server()->Tick() - m_apPlayers[i]->GetCharacter()->m_StartTime) / (Server()->TickSpeed() * 60) > g_Config.m_SvVoteVetoTime))
{
if(ActVote == 0)
Veto = true;