DEADSOFTWARE

do not save/receive absolute paths in saves/network
[d2df-sdl.git] / src / game / g_game.pas
index 63fc317b1a3718b5258c9cd0cd3a566f45e03a6b..1e518ce8b4e2b0aed7d561d4d3c755e9abf13546 100644 (file)
@@ -4693,7 +4693,7 @@ begin
           //if newResPath = '' then
           begin
             //g_Game_SetLoadingText(_lc[I_LOAD_DL_RES], 0, False);
-            newResPath := g_Res_DownloadMapWAD(WadName, gWADHash);
+            newResPath := g_Res_DownloadMapWAD(ExtractFileName(WadName), gWADHash);
             if newResPath = '' then
             begin
               g_FatalError(_lc[I_NET_ERR_HASH]);