Fixes bearing range of zero exhaustive graph traversal

This commit is contained in:
Daniel J. Hofmann
2016-09-08 17:19:48 +02:00
committed by Moritz Kobitzsch
parent c306a59854
commit a289e1cd96
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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