mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Let 0.7 clients fastdownload too
This commit is contained in:
parent
38e583f2f0
commit
b8242689c6
|
@ -1142,7 +1142,7 @@ void CServer::SendMap(int ClientID)
|
|||
Msg.AddInt(m_aCurrentMapSize[Sixup]);
|
||||
if(Sixup)
|
||||
{
|
||||
Msg.AddInt(1);
|
||||
Msg.AddInt(g_Config.m_SvMapWindow);
|
||||
Msg.AddInt(1024-128);
|
||||
Msg.AddRaw(m_aCurrentMapSha256[Sixup].data, sizeof(m_aCurrentMapSha256[Sixup].data));
|
||||
}
|
||||
|
@ -1419,8 +1419,10 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
|||
|
||||
if(m_aClients[ClientID].m_Sixup)
|
||||
{
|
||||
SendMapData(ClientID, m_aClients[ClientID].m_NextMapChunk);
|
||||
m_aClients[ClientID].m_NextMapChunk++;
|
||||
for(int i = 0; i < g_Config.m_SvMapWindow; i++)
|
||||
{
|
||||
SendMapData(ClientID, m_aClients[ClientID].m_NextMapChunk++);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue