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: 
      ComputeNearbyPoints(I);
    end;
  end;
  
  
  
negative.code: end;
  //}
  
  
  procedure TKMNavMesh.UpdateState(aTick: Cardinal);
  begin
  