hedgewars/uLand.pas
changeset 8370 0c79946e96f8
parent 8266 927da572bcdc
child 8444 75db7bb8dce8
child 8848 e9ebd63f8a03
--- a/hedgewars/uLand.pas	Thu Jan 10 22:54:55 2013 +0400
+++ b/hedgewars/uLand.pas	Thu Jan 10 22:59:46 2013 +0400
@@ -523,7 +523,6 @@
 
 procedure LoadMap;
 var tmpsurf: PSDL_Surface;
-    s: shortstring;
     mapName: shortstring = '';
 begin
 WriteLnToConsole('Loading land from file...');
@@ -631,7 +630,7 @@
             if Land[y, x] <> 0 then
                 begin
                 inc(c);
-                if c > (LAND_WIDTH div 2) then // avoid accidental triggering
+                if c > LongWord((LAND_WIDTH div 2)) then // avoid accidental triggering
                     begin
                     hasBorder:= true;
                     break;