mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix: Send vote to newly joined players
This commit is contained in:
parent
fff4b4a677
commit
bbb6572d5f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue