summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 986383d)
raw | patch | inline | side by side (parent: 986383d)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 13 Oct 2019 00:27:32 +0000 (03:27 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 13 Oct 2019 00:33:26 +0000 (03:33 +0300) |
src/game/g_map.pas | patch | blob | history |
diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 60aefbda87e3e205fc952aa4b142fbb2cb763d02..4b65cbec5ddbd539a20ff3e06b1e8a6be28a787c 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);
- //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;