anchor.diff:  uses SysUtils, Math, KromUtils, KM_PathFinding,
     KM_CommonClasses, KM_Defaults, KM_Terrain, KM_Points, BinaryHeap;
   
  -
  -{$DEFINE USEDNODES} //Optimize array reset
   
   type
     TANode = class
  
positive.code:   end;
  
    fUsedNodeCount := 0;
    {$ENDIF}
  
    //Tested having a second list that stores only used ORef cells, it's slower
    //@Krom: Did you do it the way I've done it? I get 10-40% performance improvement in path finder util (maybe I didn't test thoroughly enough)
    //@Lewin: I retested with your code and I get 20-60% boost now.
    //        Must be my bad at testing when I overlooked something ..
    //        I tested with TKMPoint, maybe that made the diff. To be deleted ..
  end;
  
  
  
negative.code:     fHeap: TBinaryHeap;
      fMinN: TANode;
      fOpenRef: array of array of TANode; //References to OpenList, Sized as map
      fUsedNodes: array of TANode; //Used to make Reset more efficient
      fUsedNodeCount: Integer;
      function HeapCmp(A,B: Pointer): Boolean;
      function GetNodeAt(X,Y: SmallInt): TANode;
      procedure Reset;
  