make sure clients are authed for map downloads

This commit is contained in:
oy 2013-02-24 18:57:23 +01:00
parent 0e92dd5603
commit 313a0949b0

View file

@ -841,6 +841,9 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
}
else if(Msg == NETMSG_REQUEST_MAP_DATA)
{
if(m_aClients[ClientID].m_State < CClient::STATE_CONNECTING)
return;
int Chunk = Unpacker.GetInt();
int ChunkSize = 1024-128;
int Offset = Chunk * ChunkSize;