fixed map downloading auth check

This commit is contained in:
heinrich5991 2013-02-08 13:12:50 +01:00 committed by Learath2
parent d15c6929e4
commit 921f5f9239

View file

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