fixed last commit

This commit is contained in:
oy 2015-12-22 18:23:08 +01:00
parent 49901e6fd7
commit 6a1939184d

View file

@ -889,7 +889,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
else if(m_VoteCreator == pPlayer->GetCID())
{
CNetMsg_Cl_Vote *pMsg = (CNetMsg_Cl_Vote *)pRawMsg;
if(!pMsg->m_Vote || m_VoteCancelTime<time_get() || pMsg->m_Vote == 1)
if(pMsg->m_Vote != -1 || m_VoteCancelTime<time_get())
return;
m_VoteCloseTime = -1;