X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_map.pas;h=4b65cbec5ddbd539a20ff3e06b1e8a6be28a787c;hp=60aefbda87e3e205fc952aa4b142fbb2cb763d02;hb=ca3a44258827aabef631db883602e9e1c5299d39;hpb=986383de4f166773e41335f5b0fec5ee5c0128f0 diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 60aefbd..4b65cbe 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -908,14 +908,9 @@ begin end else begin - //e_LogWritefln('GetReplacementWad: 000: old=%s', [WadName]); - result := g_Res_FindReplacementWad(WadName); - //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; + result := WadName; + if g_Game_IsClient then result := g_Res_FindReplacementWad(WadName); + if (result = WadName) then result := GameDir+'/wads/'+result; end; end;