DEADSOFTWARE

map: look for replacement resource wads only for network client mode
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Oct 2019 00:27:32 +0000 (03:27 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Oct 2019 00:33:26 +0000 (03:33 +0300)
src/game/g_map.pas

index 60aefbda87e3e205fc952aa4b142fbb2cb763d02..4b65cbec5ddbd539a20ff3e06b1e8a6be28a787c 100644 (file)
@@ -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;