Fix world edge positions for drawn maps
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Jun 2019 12:02:22 +0200
changeset 15148 794dc7237ca1
parent 15147 d97f0b96e45f
child 15149 59c595191eba
Fix world edge positions for drawn maps
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