X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_res_downloader.pas;h=68ceb0a71aa8be99baf763cbf8d98ba5b8ad366c;hp=098e0dd706313aa02bc4a6037541bd241f66f21b;hb=bdb5b5ae754a9579cb457267ad4ce496bd606389;hpb=782be84c041a01f0255ce718e2b5757d31e5c0d9 diff --git a/src/game/g_res_downloader.pas b/src/game/g_res_downloader.pas index 098e0dd..68ceb0a 100644 --- a/src/game/g_res_downloader.pas +++ b/src/game/g_res_downloader.pas @@ -427,10 +427,11 @@ begin g_Console_Add(Format(_lc[I_NET_MAP_DL], [FileName])); e_WriteLog('Downloading map `' + FileName + '` from server', TMsgType.Notify); g_Game_SetLoadingText(FileName + '...', 0, False); - if (not g_Net_SendMapRequest()) then exit; FileName := ExtractFileName(FileName); if (length(FileName) = 0) then FileName := 'fucked_map_wad.wad'; + + // this also sends map request res := g_Net_Wait_MapInfo(tf, resList); if (res <> 0) then exit;