From: Ketmar Dark Date: Thu, 7 Nov 2019 20:31:56 +0000 (+0200) Subject: downloader: cosmetix X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8de82ec2bd6c7f7e949da1b44432f4e82988a479;p=d2df-sdl.git downloader: cosmetix --- diff --git a/src/game/g_res_downloader.pas b/src/game/g_res_downloader.pas index f334e2f..7fc2951 100644 --- a/src/game/g_res_downloader.pas +++ b/src/game/g_res_downloader.pas @@ -373,16 +373,15 @@ begin clearReplacementWads(); sfsGCCollect(); // why not? g_Res_CreateDatabases(); + FileName := ExtractFileName(FileName); + if (length(FileName) = 0) then FileName := '__unititled__.wad'; try g_Res_received_map_start := 1; g_Console_Add(Format(_lc[I_NET_MAP_DL], [FileName])); - e_WriteLog('Downloading map `' + FileName + '` from server', TMsgType.Notify); + e_LogWritefln('Downloading map [%s] from server...', [FileName], TMsgType.Notify); g_Game_SetLoadingText(FileName + '...', 0, False); - 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;