hedgewars/uLandGenTemplateBased.pas
changeset 14100 4d22be35cfa2
parent 13903 e26573441808
child 14282 6015b74eea55
--- a/hedgewars/uLandGenTemplateBased.pas	Fri Nov 02 23:33:22 2018 +0300
+++ b/hedgewars/uLandGenTemplateBased.pas	Fri Nov 02 22:59:22 2018 +0100
@@ -164,9 +164,9 @@
             fp:= pa.ar[i + 1]
         else if (i <> si) then
         begin
-        p4:= pa.ar[i + 1];
-        if p4.x = NTPX then
-            p4:= fp;
+            p4:= pa.ar[i + 1];
+            if p4.x = NTPX then
+                p4:= fp;
 
             // check if it intersects
             t1:= (mp.x - pa.ar[i].x) * b - a * (mp.y - pa.ar[i].y);