From aab3beb3b018cd0785c39c0c46a37a96e6a8b6ab Mon Sep 17 00:00:00 2001 From: def Date: Fri, 8 Jul 2016 18:28:15 +0200 Subject: [PATCH] Veto right for start and join time --- src/game/server/gamecontext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 47d0ee386..2d892f6f7 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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;