# HG changeset patch
# User nemo
# Date 1543009127 18000
# Node ID a7810074c20d5706df8d9baa0eae614e5eb6b567
# Parent  a3531b520efbeda19840517c01a4775639e263d5
these need casting too, but overall switching type is a win.

diff -r a3531b520efb -r a7810074c20d hedgewars/uLandGenTemplateBased.pas
--- a/hedgewars/uLandGenTemplateBased.pas	Fri Nov 23 16:20:55 2018 -0500
+++ b/hedgewars/uLandGenTemplateBased.pas	Fri Nov 23 16:38:47 2018 -0500
@@ -367,7 +367,7 @@
         hasBorder:= true;
         for y:= 0 to LAND_HEIGHT - 1 do
             for x:= 0 to LAND_WIDTH - 1 do
-                if (y < topY) or (x < leftX) or (x > rightX) then
+                if (y < LongWord(topY)) or (x < LongWord(leftX)) or (x > LongWord(rightX)) then
                     Land[y, x]:= 0
                 else
                     begin