anchor.diff:    PolyArr: TPolygonArray;
     NodeArr: TNodeArray;
     Col: Cardinal;
  -
  -  //MaxW,MinW: Word;
  -  //B: Byte;
  -begin
  -  {
  -  for Y := 1 to fMapY - 1 do
  -  for X := 1 to fMapX - 1 do
  -  begin
  -    //Col := fAreas[Y,X] * $010101 OR $80000000;
  -    Col := (fAreas[Y,X] shl 24) OR COLOR_BLACK;
  -    gRenderAux.Quad(X, Y, Col);
  -  end;
  -  //PolyArr := fNavMesh.Polygons;
  -  //NodeArr := fNavMesh.Nodes;
  -  //  MaxW := 0;
  -  //  MinW := High(Word);
  -  //  for I := Low(fAreas) to High(fAreas) do
  -  //    if (fAreas[I] > MaxW) then
  -  //      MaxW := fAreas[I]
  -  //    else if (fAreas[I] < MinW) then
  -  //      MinW := fAreas[I];
  -  //  for I := Low(fAreas) to High(fAreas) do
  -  //  begin
  -  //    B := Round((fAreas[I] - MinW)/(MaxW - MinW)*255);
  -  //    Col := $FFFFFF OR (B shl 24);
  -  //
  -  //    //NavMesh polys coverage
  -  //    gRenderAux.TriangleOnTerrain(
  -  //      NodeArr[PolyArr[I].Indices[0]].Loc.X,
  -  //      NodeArr[PolyArr[I].Indices[0]].Loc.Y,
  -  //      NodeArr[PolyArr[I].Indices[1]].Loc.X,
  -  //      NodeArr[PolyArr[I].Indices[1]].Loc.Y,
  -  //      NodeArr[PolyArr[I].Indices[2]].Loc.X,
  -  //      NodeArr[PolyArr[I].Indices[2]].Loc.Y, Col);
  -  //  end;
  -  //}
  -
  -
  +begin
   
     if not AI_GEN_NAVMESH OR not AI_GEN_INFLUENCE_MAPS then
       Exit;
  
positive.code:     procedure UpdateOwnership(const aPL: TKMHandIndex);
      // Common
      procedure InitArrays();
      function GetAreaEval(const aY,aX: Word): Byte;
    public
      constructor Create(aNavMesh: TKMNavMesh);
      destructor Destroy(); override;
  
negative.code:   LoadStream.Read(Len);
    SetLength(fPresence, Len);
    LoadStream.Read(fPresence[0], SizeOf(fPresence[0]) * Len);
  end;
  
  
  