diff options
| author | mat <git@matdoes.dev> | 2026-01-06 06:34:19 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-06 06:34:19 -0500 |
| commit | fdbcfaab4813da928f9f27e119d4951088c3a853 (patch) | |
| tree | 19f33692f882ada386f8b6aea1e1a195a905e286 /azalea/src/pathfinder | |
| parent | 9c2c7c3497a74e80d7186fdcd97ce2518520faa6 (diff) | |
| download | azalea-drasl-fdbcfaab4813da928f9f27e119d4951088c3a853.tar.xz | |
add a few more convenience functions and update some docs
Diffstat (limited to 'azalea/src/pathfinder')
| -rw-r--r-- | azalea/src/pathfinder/astar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
