From 8de82ec2bd6c7f7e949da1b44432f4e82988a479 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Thu, 7 Nov 2019 22:31:56 +0200 Subject: [PATCH] downloader: cosmetix --- src/game/g_res_downloader.pas | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.29.2