Perlin maps: Initialize playWidth and playHeight
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Jun 2019 17:00:43 +0200
changeset 15160 c0ae9f4f9589
parent 15159 13a69aad9325
child 15161 84e98f0f7f7b
Perlin maps: Initialize playWidth and playHeight
hedgewars/uLandGenPerlin.pas
--- a/hedgewars/uLandGenPerlin.pas	Sat Jun 15 16:37:36 2019 +0200
+++ b/hedgewars/uLandGenPerlin.pas	Sat Jun 15 17:00:43 2019 +0200
@@ -225,8 +225,10 @@
                     Land[y, x]:= 0;
         end;
 
+    playWidth:= width;
+    playHeight:= height;
     leftX:= 0;
-    rightX:= 4095;
+    rightX:= playWidth - 1;
     topY:= 0;
     hasBorder:= false;
 end;