From: Ketmar Dark Date: Sun, 13 Oct 2019 00:27:32 +0000 (+0300) Subject: map: look for replacement resource wads only for network client mode X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=ca3a44258827aabef631db883602e9e1c5299d39;p=d2df-sdl.git map: look for replacement resource wads only for network client mode --- 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;