anchor.diff:    end;
   
   begin
  -  if not gTerrain.TileInMapCoords(X, Y) then
  -    Exit;
  -
     if gGameCursor.MapEdSize = 0 then
     begin
  +    if not gTerrain.VerticeInMapCoords(X, Y) then
  +      Exit;
       LandTerKind[fMapYn, fMapXn].TerKind := aTerKind;
       AddBrushAreaTerKind(fMapXn, fMapYn);
       Exit;
     end;
  +
  +  if not gTerrain.TileInMapCoords(X, Y) then
  +    Exit;
   
     LandTerKind[Y,   X].TerKind   := aTerKind;
     LandTerKind[Y,   X+1].TerKind := aTerKind;
  
positive.code:     LandTerKind: array of array of TKMPainterTile;
      RandomizeTiling: Boolean;
      procedure InitEmpty;
  
      function NodeInMapCoords(X,Y: Integer): Boolean;
  
      procedure LoadFromFile(const aFileName: UnicodeString);
      procedure SaveToFile(const aFileName: UnicodeString); overload;
  
negative.code:             if I in Tile.Layer[L].Corners then
                Result[I] := gRes.Sprites.GetGenTerrainInfo(Tile.Layer[L].Terrain).TerKind;
        end;
    end;
  end;
  
  
  