add remark to AStarNode about tiebreakers

This commit is contained in:
tali 2023-04-11 22:39:45 -04:00
parent 2910e405be
commit 79695ef1d6
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ impl core::cmp::Ord for AStarNode {
fn cmp(&self, other: &Self) -> core::cmp::Ordering {
let lhs = unsafe { self.0.as_node() };
let rhs = unsafe { other.0.as_node() };
// FIXME: add a deterministic tiebreaker
lhs.rating().cmp(&rhs.rating()).reverse()
}
}