--- a/hedgewars/uScript.pas Wed Nov 14 00:41:29 2012 +0400
+++ b/hedgewars/uScript.pas Wed Nov 14 22:45:36 2012 +0400
@@ -1592,7 +1592,7 @@
lua_pushnil(L);
end
else
- lua_pushstring(L, str2pchar(Pathz[ptData]));
+ lua_pushstring(L, str2pchar(cPathz[ptData]));
lc_getdatapath:= 1
end;
@@ -1604,7 +1604,7 @@
lua_pushnil(L);
end
else
- lua_pushstring(L, str2pchar(UserPathz[ptData]));
+ lua_pushstring(L, str2pchar(cPathz[ptData]));
lc_getuserdatapath:= 1
end;
@@ -1969,9 +1969,7 @@
var ret : LongInt;
s : shortstring;
begin
-s:= UserPathz[ptData] + '/' + name;
-if not FileExists(s) then
- s:= Pathz[ptData] + '/' + name;
+s:= cPathz[ptData] + '/' + name;
if not FileExists(s) then
exit;