mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
fixed map downloading auth check
This commit is contained in:
parent
d15c6929e4
commit
921f5f9239
|
@ -878,6 +878,9 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
||||||
}
|
}
|
||||||
else if(Msg == NETMSG_REQUEST_MAP_DATA)
|
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 Chunk = Unpacker.GetInt();
|
||||||
int ChunkSize = 1024-128;
|
int ChunkSize = 1024-128;
|
||||||
int Offset = Chunk * ChunkSize;
|
int Offset = Chunk * ChunkSize;
|
||||||
|
|
Loading…
Reference in a new issue