diff -r b219c5a2317f -r 12662c21e0e9 hedgewars/uLandGenTemplateBased.pas --- a/hedgewars/uLandGenTemplateBased.pas Sun Nov 09 14:58:43 2014 -0500 +++ b/hedgewars/uLandGenTemplateBased.pas Sun Nov 09 23:44:13 2014 +0300 @@ -152,6 +152,10 @@ iy:= (rightX - mapBorderMargin - mp.x) * b div a + mp.y; d:= DistanceI(mp.x - rightX + mapBorderMargin, mp.y - iy).Round; if t1 > 0 then distR:= d else distL:= d; + end else + begin + distL:= LAND_WIDTH + LAND_HEIGHT; + distR:= distL; end; if b <> 0 then