mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix veto
This commit is contained in:
parent
a4a841c0f9
commit
e8dac3346a
|
@ -681,7 +681,7 @@ void CGameContext::OnTick()
|
|||
!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]->GetCharacter()->m_StartTime) / (Server()->TickSpeed() * 60) > g_Config.m_SvVoteVetoTime))
|
||||
(m_apPlayers[i]->GetCharacter() && (Server()->Tick() - m_apPlayers[i]->GetCharacter()->m_StartTime) / (Server()->TickSpeed() * 60) > g_Config.m_SvVoteVetoTime)))
|
||||
{
|
||||
if(ActVote == 0)
|
||||
Veto = true;
|
||||
|
|
Loading…
Reference in a new issue