Taking into account of the buildings when patrolling