DEADSOFTWARE

downloader: cosmetix
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Thu, 7 Nov 2019 20:31:56 +0000 (22:31 +0200)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Thu, 7 Nov 2019 20:33:27 +0000 (22:33 +0200)
src/game/g_res_downloader.pas

index f334e2f806d30ce5753aa533449888a99d15cfe8..7fc295119c4cdada4b8e7b98f8db5fb2026f6f6e 100644 (file)
@@ -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;