Fix: Send vote to newly joined players

This commit is contained in:
def 2014-03-28 12:52:03 +01:00
parent fff4b4a677
commit bbb6572d5f

View file

@ -780,9 +780,11 @@ void CGameContext::OnClientEnter(int ClientID)
}
m_VoteUpdate = true;
// send active vote
if(m_VoteCloseTime)
SendVoteSet(ClientID);
m_apPlayers[ClientID]->m_Authed = ((CServer*)Server())->m_aClients[ClientID].m_Authed;
}
void CGameContext::OnClientConnected(int ClientID)
@ -804,10 +806,6 @@ void CGameContext::OnClientConnected(int ClientID)
}
#endif
// send active vote
if(m_VoteCloseTime)
SendVoteSet(ClientID);
// send motd
CNetMsg_Sv_Motd Msg;
Msg.m_pMessage = g_Config.m_SvMotd;