From fdbcfaab4813da928f9f27e119d4951088c3a853 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 6 Jan 2026 06:34:19 -0500 Subject: add a few more convenience functions and update some docs --- azalea/src/pathfinder/astar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src/pathfinder') diff --git a/azalea/src/pathfinder/astar.rs b/azalea/src/pathfinder/astar.rs index 69151991..ea2d45e2 100644 --- a/azalea/src/pathfinder/astar.rs +++ b/azalea/src/pathfinder/astar.rs @@ -303,8 +303,8 @@ impl PathfinderHeap { pub fn push(&mut self, item: WeightedNode) { if let Some(top) = self.radix_heap.top() { - // this can happen when the heuristic isn't optimal, so just fall back to a - // binary heap in those cases + // this can happen when the heuristic wasn't an underestimate, so just fall back + // to a binary heap in those cases if item.f_score < f32::from_bits(top.0) { self.binary_heap.push(item); return; -- cgit v1.2.3