anchor.diff:      fPolyCount: Integer;
       fNodes: TNodeArray;            // Nodes
       fPolygons: TPolygonArray;      // Polygons
  -    fPoint2NodeArr: TKMWord2Array;
  +    fPoint2PolygonArr: TKMWord2Array;
   
       //Building the navmesh from terrain
       //Process involves many steps executed in a functional way
  
positive.code:   MinPoint, MaxPoint: TKMPoint;
    v1, v2, v3: TKMPointF;
  begin
    SetLength(fPoint2NodeArr, gTerrain.MapY, gTerrain.MapX);
    for Y := Low(fPoint2NodeArr) to High(fPoint2NodeArr) do
      for X := Low(fPoint2NodeArr[Y]) to High(fPoint2NodeArr[Y]) do
        fPoint2NodeArr[Y,X] := High(Word);
  
    for I := 0 to fPolyCount - 1 do
    begin
  
negative.code:       begin
          if PointInTriangle(KMPointF(X-0.5,Y-0.5), v1, v2, v3) then
          begin
            fPoint2PolygonArr[Y,X] := I;
            AlreadyInTriangle := True;
          end
          else if AlreadyInTriangle then
  