mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
make sure clients are authed for map downloads
This commit is contained in:
parent
0e92dd5603
commit
313a0949b0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue