mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +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);
|
SendTuningParams(ClientID, pPlayer->m_TuneZone);
|
||||||
|
|
||||||
// client is ready to enter
|
// client is ready to enter
|
||||||
if(!pPlayer->m_IsReady)
|
pPlayer->m_IsReady = true;
|
||||||
{
|
CNetMsg_Sv_ReadyToEnter m;
|
||||||
pPlayer->m_IsReady = true;
|
Server()->SendPackMsg(&m, MSGFLAG_VITAL | MSGFLAG_FLUSH, ClientID);
|
||||||
CNetMsg_Sv_ReadyToEnter m;
|
|
||||||
Server()->SendPackMsg(&m, MSGFLAG_VITAL | MSGFLAG_FLUSH, ClientID);
|
|
||||||
}
|
|
||||||
|
|
||||||
Server()->ExpireServerInfo();
|
Server()->ExpireServerInfo();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue