hedgewars/uLandUtils.pas
changeset 15148 794dc7237ca1
parent 12316 1b5a4807f8f4
--- 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