Fixes bearing range of zero exhaustive graph traversal
This commit is contained in:
committed by
Moritz Kobitzsch
parent
c306a59854
commit
a289e1cd96
@@ -67,7 +67,7 @@ inline bool CheckInBounds(const int A, const int B, const int range)
|
||||
|
||||
if (range >= 180)
|
||||
return true;
|
||||
if (range <= 0)
|
||||
if (range < 0)
|
||||
return false;
|
||||
|
||||
// Map both bearings into positive modulo 360 space
|
||||
|
||||
Reference in New Issue
Block a user