summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1d7385)
raw | patch | inline | side by side (parent: c1d7385)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 12 Oct 2019 17:50:15 +0000 (20:50 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 12 Oct 2019 17:52:21 +0000 (20:52 +0300) |
src/game/g_map.pas | patch | blob | history |
diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 08ebadeb2929d4b429c62c9a7794173bfb0995cc..392d45b328918d865718815ad1daff07c0889db1 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
end
else
begin
+ //e_LogWritefln('GetReplacementWad: 000: old=%s', [WadName]);
result := g_Res_FindReplacementWad(WadName);
- if (result <> WadName) then
- begin
- //e_LogWritefln('GetReplacementWad: old=%s; new=%s', [WadName, result]);
- end
- else
+ //e_LogWritefln('GetReplacementWad: 001: old=%s; new=%s', [WadName, result]);
+ if (result = WadName) then
begin
result := GameDir+'/wads/'+result;
+ //e_LogWritefln('GetReplacementWad: 002: old=%s; new=%s', [WadName, result]);
end;
end;
end;
+
function CreateTexture(RecName: AnsiString; Map: string; log: Boolean): Integer;
var
WAD: TWADFile;
if (gCurrentMap = nil) then
begin
FileName := g_ExtractWadName(Res);
- e_WriteLog('Loading map WAD: '+FileName, TMsgType.Notify);
+ e_LogWritefln('Loading map WAD [%s] (res=[%s])', [FileName, Res], TMsgType.Notify);
g_Game_SetLoadingText(_lc[I_LOAD_WAD_FILE], 0, False);
WAD := TWADFile.Create();