corrected user ptData path
authornemo
Tue, 14 Jun 2011 16:44:51 -0400
changeset 5242 e4f6aa3250eb
parent 5241 e1fb0fc971c6
child 5243 f2e31a7f953a
corrected user ptData path
hedgewars/hwengine.pas
--- 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];