From: Ketmar Dark Date: Sat, 12 Oct 2019 17:50:15 +0000 (+0300) Subject: maploader: slightly better debug logs X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=1b5356c2238a0d81002b9fe639e0d710e052124d;p=d2df-sdl.git maploader: slightly better debug logs --- diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 08ebade..392d45b 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -908,18 +908,18 @@ begin 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; @@ -1699,7 +1699,7 @@ begin 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();