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:     CheckTerKind(aCell.X,   aCell.Y+1, 3);
    end;
  
    if not aUseOnlyNodeTK then
      for I := 0 to 3 do
        if not TerKindFound[I] then
        begin
  
negative.code: //  gLog.AddTime('Prepare Temp UseMagicBrush');
    UpdateTempLand;
  
    fUseTempLand := aSize > 0; //Do not use temp land when size = 0
    fReplaceLayers := False;
    IterateOverArea(KMPoint(X,Y), aSize, aSquare, MagicBrush, aAroundTiles);
  
  