summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 305dd57)
raw | patch | inline | side by side (parent: 305dd57)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 7 Nov 2019 20:31:56 +0000 (22:31 +0200) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 7 Nov 2019 20:33:27 +0000 (22:33 +0200) |
src/game/g_res_downloader.pas | patch | blob | history |
index f334e2f806d30ce5753aa533449888a99d15cfe8..7fc295119c4cdada4b8e7b98f8db5fb2026f6f6e 100644 (file)
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;