hedgewars/hwengine.pas
changeset 5242 e4f6aa3250eb
parent 5239 f34f391a223b
child 5286 22c1f4833a86
child 5505 a55aab592950
--- a/hedgewars/hwengine.pas	Tue Jun 14 14:00:29 2011 -0400
+++ b/hedgewars/hwengine.pas	Tue Jun 14 16:44:51 2011 -0400
@@ -240,7 +240,9 @@
         AddFileLog(inttostr(i) + ': ' + ParamStr(i));
 
     for p:= Succ(Low(TPathType)) to High(TPathType) do
-        if p <> ptMapCurrent then UserPathz[p]:= UserPathPrefix + '/Data/' + Pathz[p];
+        if (p <> ptMapCurrent) and (p <> ptData) then UserPathz[p]:= UserPathPrefix + '/Data/' + Pathz[p];
+
+    UserPathz[ptData]:= UserPathPrefix + '/Data';
 
     for p:= Succ(Low(TPathType)) to High(TPathType) do
         if p <> ptMapCurrent then Pathz[p]:= PathPrefix + '/' + Pathz[p];