mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix votes
This commit is contained in:
parent
cb0209d6e3
commit
214a8ba10a
|
@ -3388,7 +3388,7 @@ bool CGameContext::PlayerModerating()
|
|||
void CGameContext::ForceVote(int EnforcerID, bool Success)
|
||||
{
|
||||
// check if there is a vote running
|
||||
if(m_VoteCloseTime)
|
||||
if(!m_VoteCloseTime)
|
||||
return;
|
||||
|
||||
m_VoteEnforce = Success ? CGameContext::VOTE_ENFORCE_YES_ADMIN : CGameContext::VOTE_ENFORCE_NO_ADMIN;
|
||||
|
|
Loading…
Reference in a new issue