# HG changeset patch # User nemo # Date 1308074429 14400 # Node ID e1fb0fc971c654a4cdb433b25f2b31eed6724ff5 # Parent 9135c1905415102096cf63bd1932489dbf4d8408 add missing user path check diff -r 9135c1905415 -r e1fb0fc971c6 hedgewars/uLand.pas --- a/hedgewars/uLand.pas Tue Jun 14 11:29:15 2011 -0400 +++ b/hedgewars/uLand.pas Tue Jun 14 14:00:29 2011 -0400 @@ -1178,7 +1178,8 @@ TryDo((tmpsurf^.w <= LAND_WIDTH) and (tmpsurf^.h <= LAND_HEIGHT), 'Map dimensions too big!', true); // unC0Rr - should this be passed from the GUI? I am not sure which layer does what -s:= Pathz[ptMapCurrent] + '/map.cfg'; +s:= UserPathz[ptMapCurrent] + '/map.cfg'; +if not FileExists(s) then s:= Pathz[ptMapCurrent] + '/map.cfg'; WriteLnToConsole('Fetching map HH limit'); {$I-} Assign(f, s);