anchor.diff:    if not gTerrain.TileInMapCoords(aP.X, aP.Y) then
       aP := KMPoint(  Min( Max(1,aP.X), gTerrain.MapX-1), Min( Max(1,aP.Y), gTerrain.MapY-1)  );
   
  -  Result := Point2PolygonArr[aP.Y,aP.X];
  +  Result := fPoint2PolygonArr[aP.Y,aP.X];
     if (Result <> High(Word)) then
       Exit;
   
  
positive.code:   {NavMesh polys coverage
    if OVERLAY_NAVMESH then
      for I := 0 to fPolyCount - 1 do
        gRenderAux.TriangleOnTerrain(
          fNodes[fPolygons[I].Indices[0]].Loc.X,
          fNodes[fPolygons[I].Indices[0]].Loc.Y,
          fNodes[fPolygons[I].Indices[1]].Loc.X,
          fNodes[fPolygons[I].Indices[1]].Loc.Y,
          fNodes[fPolygons[I].Indices[2]].Loc.X,
          fNodes[fPolygons[I].Indices[2]].Loc.Y, $60FF0000);//}
  
    //NavMesh edges
    if OVERLAY_NAVMESH then
  
negative.code:   KM_PolySimplify,
    KM_CommonClasses, KM_CommonTypes, KM_Defaults, KM_Points,
    KM_NavMeshDefences,
    KromUtils, KM_CommonUtils,
    KM_NavMeshFloodPositioning, KM_NavMeshPathFinding;// TimeGet
  
  
  type
  