hedgewars/uLand.pas
changeset 5241 e1fb0fc971c6
parent 5238 46ddaf14509d
child 5274 941da059472b
--- 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);