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:
bors[bot] 2020-09-04 14:17:32 +00:00 committed by GitHub
commit e3b879f616
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }