diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 63fc317b1a3718b5258c9cd0cd3a566f45e03a6b..8366787a04365305daa80afd9c8d47e574458427 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
//if newResPath = '' then
begin
//g_Game_SetLoadingText(_lc[I_LOAD_DL_RES], 0, False);
//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]);
if newResPath = '' then
begin
g_FatalError(_lc[I_NET_ERR_HASH]);
Exit;
end;
Exit;
end;
-(*
- xwad := ExtractRelativePath(MapsDir, gWAD);
- e_LogWritefln('using downloaded client map wad [%s] for [%s]`', [xwad, NewWAD], TMsgType.Notify);
- NewWAD := xwad;
- g_Game_LoadWAD(NewWAD);
-*)
+ e_LogWritefln('using downloaded client map wad [%s] for [%s]', [gWAD, NewWAD], TMsgType.Notify);
+ NewWAD := gWAD;
- e_LogWritefln('using downloaded client map wad [%s]`', [NewWAD], TMsgType.Notify);
g_Game_LoadWAD(NewWAD);
result := NewWAD;
g_Game_LoadWAD(NewWAD);
result := NewWAD;