Fixes issue #111 where heading 0 was incorrectly mapped to South.
This commit is contained in:
parent
78d6a25d98
commit
12c547126e
@ -28,7 +28,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
struct Azimuth {
|
||||
static std::string Get(const double heading) {
|
||||
if(heading <= 202.5) {
|
||||
if(heading > 0 && heading <= 22.5)
|
||||
if(heading >= 0 && heading <= 22.5)
|
||||
return "N";
|
||||
if(heading > 22.5 && heading <= 67.5)
|
||||
return "NE";
|
||||
|
Loading…
Reference in New Issue
Block a user