mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove redundant check for pPlayer->m_IsReady
This commit is contained in:
parent
5fa2e04c97
commit
7eb26c62d1
|
@ -2379,12 +2379,9 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
SendTuningParams(ClientID, pPlayer->m_TuneZone);
|
||||
|
||||
// client is ready to enter
|
||||
if(!pPlayer->m_IsReady)
|
||||
{
|
||||
pPlayer->m_IsReady = true;
|
||||
CNetMsg_Sv_ReadyToEnter m;
|
||||
Server()->SendPackMsg(&m, MSGFLAG_VITAL | MSGFLAG_FLUSH, ClientID);
|
||||
}
|
||||
pPlayer->m_IsReady = true;
|
||||
CNetMsg_Sv_ReadyToEnter m;
|
||||
Server()->SendPackMsg(&m, MSGFLAG_VITAL | MSGFLAG_FLUSH, ClientID);
|
||||
|
||||
Server()->ExpireServerInfo();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue