From 73b9448c0ca69bb1755bf5689485f521aac2684c Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Fri, 8 May 2015 14:51:54 +0300 Subject: [PATCH] Fixed download bug (creating directory bug) --- rehlds/engine/net_chan.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rehlds/engine/net_chan.cpp b/rehlds/engine/net_chan.cpp index acc4ecb..78a6b7e 100644 --- a/rehlds/engine/net_chan.cpp +++ b/rehlds/engine/net_chan.cpp @@ -1558,9 +1558,17 @@ qboolean Netchan_CopyFileFragments(netchan_t *chan) COM_FixSlashes(filedir); pszFileName = strrchr(filedir, '\\'); if (pszFileName) + { *pszFileName = 0; +#ifdef REHLDS_FIXES + FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD"); +#endif + } + +#ifndef REHLDS_FIXES FS_CreateDirHierarchy(filedir, "GAMEDOWNLOAD"); +#endif handle = FS_OpenPathID(filename, "wb", "GAMEDOWNLOAD"); if (!handle) {