diff --git a/game/navmesh.py b/game/navmesh.py index 3c109411..e2b18f03 100644 --- a/game/navmesh.py +++ b/game/navmesh.py @@ -59,7 +59,9 @@ class NavPoint: if not isinstance(other, NavPoint): return False - if not self.point.almost_equals(other.point): + # The tolerance value used here is the same that was used by the now deprecated + # almost_equals. + if not self.point.equals_exact(other.point, 0.5 * 10 ** (-6)): return False return self.poly == other.poly