anchor.diff:  end;
   
   
  -function TKMHousesCollection.FindHouse(aType: TKMHouseType; X, Y: word; const aIndex: Byte = 1; aOnlyCompleted: Boolean = True): TKMHouse;
  +function TKMHousesCollection.FindHouse(aType: TKMHouseType; X, Y: Word; const aIndex: Byte = 1; aOnlyCompleted: Boolean = True): TKMHouse;
   var
     HT: THouseTypeSet;
   begin
  
positive.code: end;
  
  
  function TKMHousesCollection.AddToCollection(aHouseType: TKMHouseType; PosX,PosY: Integer; aOwner: TKMHandID; aHBS: TKMHouseBuildState): TKMHouse;
  var
    uid: Cardinal;
  begin
  
negative.code:       //Recruits should not go to a barracks with ware delivery switched off or with not accept flag for recruits
        if (Houses[I].HouseType = htBarracks)
          and ((Houses[I].DeliveryMode <> dmDelivery) or (TKMHouseBarracks(Houses[I]).NotAcceptRecruitFlag)) then Continue;
        if not gTerrain.Route_CanBeMade(aLoc, Houses[I].PointBelowEntrance, tpWalk, 0) then Continue;
  
        dist := KMLengthSqr(aLoc, Houses[I].Position);
  
        //Always prefer Towers to Barracks by making Barracks Bid much less attractive
        //In case of multiple barracks, prefer the closer one (players should make multiple schools or use WareDelivery to control it)
  