hedgewars/uLandUtils.pas
branchui-scaling
changeset 15283 c4fd2813b127
parent 15143 794dc7237ca1
child 15900 128ace913837
--- a/hedgewars/uLandUtils.pas	Wed May 16 18:22:28 2018 +0200
+++ b/hedgewars/uLandUtils.pas	Wed Jul 31 23:14:27 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