mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix http map download...
This commit is contained in:
parent
7c4a7e4c67
commit
5e1f62fe7c
|
@ -1569,8 +1569,12 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char aFilename[256];
|
char aFilename[256];
|
||||||
FormatMapDownloadFilename(pMap, pMapSha256, MapCrc, true, aFilename, sizeof(aFilename));
|
FormatMapDownloadFilename(pMap, pMapSha256, MapCrc, false, aFilename, sizeof(aFilename));
|
||||||
str_format(m_aMapdownloadFilename, sizeof(m_aMapdownloadFilename), "downloadedmaps/%s", aFilename);
|
|
||||||
|
char aTempFilename[256];
|
||||||
|
FormatMapDownloadFilename(pMap, pMapSha256, MapCrc, true, aTempFilename, sizeof(aTempFilename));
|
||||||
|
|
||||||
|
str_format(m_aMapdownloadFilename, sizeof(m_aMapdownloadFilename), "downloadedmaps/%s", aTempFilename);
|
||||||
|
|
||||||
char aBuf[256];
|
char aBuf[256];
|
||||||
str_format(aBuf, sizeof(aBuf), "starting to download map to '%s'", m_aMapdownloadFilename);
|
str_format(aBuf, sizeof(aBuf), "starting to download map to '%s'", m_aMapdownloadFilename);
|
||||||
|
|
Loading…
Reference in a new issue