mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Veto right for start and join time
This commit is contained in:
parent
8b10d15845
commit
aab3beb3b0
|
@ -680,7 +680,8 @@ void CGameContext::OnTick()
|
||||||
if(!m_VoteKick && !m_VoteSpec && m_apPlayers[i] &&
|
if(!m_VoteKick && !m_VoteSpec && m_apPlayers[i] &&
|
||||||
!m_apPlayers[i]->m_Afk && m_apPlayers[i]->GetTeam() != TEAM_SPECTATORS &&
|
!m_apPlayers[i]->m_Afk && m_apPlayers[i]->GetTeam() != TEAM_SPECTATORS &&
|
||||||
g_Config.m_SvVoteVetoTime &&
|
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)
|
if(ActVote == 0)
|
||||||
Veto = true;
|
Veto = true;
|
||||||
|
|
Loading…
Reference in a new issue