From 5e1f62fe7ccfb9f456d74ae98c66f0150470fc91 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 30 Jun 2018 09:47:45 +0200 Subject: [PATCH] Fix http map download... --- src/engine/client/client.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 5c8e4a155..2420f3fa5 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -1569,8 +1569,12 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket) else { char aFilename[256]; - FormatMapDownloadFilename(pMap, pMapSha256, MapCrc, true, aFilename, sizeof(aFilename)); - str_format(m_aMapdownloadFilename, sizeof(m_aMapdownloadFilename), "downloadedmaps/%s", aFilename); + FormatMapDownloadFilename(pMap, pMapSha256, MapCrc, false, aFilename, sizeof(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]; str_format(aBuf, sizeof(aBuf), "starting to download map to '%s'", m_aMapdownloadFilename);