mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2736
2736: Let 0.7 clients fastdownload too r=def- a=Learath2 Easier than expected, I wonder why I didn't do this at the start. Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
commit
e3b879f616
|
@ -1147,7 +1147,7 @@ void CServer::SendMap(int ClientID)
|
||||||
Msg.AddInt(m_aCurrentMapSize[Sixup]);
|
Msg.AddInt(m_aCurrentMapSize[Sixup]);
|
||||||
if(Sixup)
|
if(Sixup)
|
||||||
{
|
{
|
||||||
Msg.AddInt(1);
|
Msg.AddInt(g_Config.m_SvMapWindow);
|
||||||
Msg.AddInt(1024-128);
|
Msg.AddInt(1024-128);
|
||||||
Msg.AddRaw(m_aCurrentMapSha256[Sixup].data, sizeof(m_aCurrentMapSha256[Sixup].data));
|
Msg.AddRaw(m_aCurrentMapSha256[Sixup].data, sizeof(m_aCurrentMapSha256[Sixup].data));
|
||||||
}
|
}
|
||||||
|
@ -1424,8 +1424,10 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
||||||
|
|
||||||
if(m_aClients[ClientID].m_Sixup)
|
if(m_aClients[ClientID].m_Sixup)
|
||||||
{
|
{
|
||||||
SendMapData(ClientID, m_aClients[ClientID].m_NextMapChunk);
|
for(int i = 0; i < g_Config.m_SvMapWindow; i++)
|
||||||
m_aClients[ClientID].m_NextMapChunk++;
|
{
|
||||||
|
SendMapData(ClientID, m_aClients[ClientID].m_NextMapChunk++);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue