Remove redundant check for pPlayer->m_IsReady

This commit is contained in:
def 2020-12-19 10:20:18 +01:00
parent 5fa2e04c97
commit 7eb26c62d1

View file

@ -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();
} }