anchor.diff:  
       fBoundsWC: TKMRect; //WC rebuild bounds used in FlattenTerrain (put outside to fight with recursion SO error in FlattenTerrain EnsureWalkable)
   
  -    function TileHasParameter(X,Y: Word; aCheckTileFunc: TBooleanWordFunc): Boolean;
  +    function TileHasParameter(X,Y: Word; aCheckTileFunc: TBooleanWordFunc; aAllow2CornerTiles: Boolean = True): Boolean;
   
       function GetMiningRect(aRes: TKMWareType): TKMRect;
   
  
positive.code: end;
  
  
  function TKMTerrain.TileHasParameter(X,Y: Word; aCheckTileFunc: TBooleanWordFunc): Boolean;
  var
    K, Cnt: Integer;
    Corners: TKMWordArray;
  
negative.code: //  Ter: Word;
  //  TerInfo: TKMGenTerrainInfo;
  begin
    Result := TileHasParameter(Loc.X, Loc.Y, fTileset.TileIsRoadable, False);
  //  Result := fTileset.TileIsRoadable(Land[Loc.Y, Loc.X].BaseLayer.Terrain);
  //  for L := 0 to Land[Loc.Y, Loc.X].LayersCnt - 1 do
  //  begin
  