# HG changeset patch # User Wuzzy # Date 1560592942 -7200 # Node ID 794dc7237ca120fb5cfd84e76826b7230a3002c2 # Parent d97f0b96e45f86f2ee4074a77db4a3a3297047f4 Fix world edge positions for drawn maps diff -r d97f0b96e45f -r 794dc7237ca1 hedgewars/uLandUtils.pas --- a/hedgewars/uLandUtils.pas Sat Jun 15 03:27:06 2019 +0200 +++ b/hedgewars/uLandUtils.pas Sat Jun 15 12:02:22 2019 +0200 @@ -42,6 +42,11 @@ lx:= LongInt(LAND_WIDTH) - 1; +// don't change world edges for drawn maps +if (cMapGen = mgDrawn) then + // edges were adjusted already in GenDrawnMap() in uLand + EXIT; + // use maximum available map width if there is no special world edge if WorldEdge = weNone then begin