diff --git a/Library/ADSB.cpp b/Library/ADSB.cpp index 5e3b4baefd..34afa8bd4f 100644 --- a/Library/ADSB.cpp +++ b/Library/ADSB.cpp @@ -346,7 +346,7 @@ namespace Plane else if (lat > 87) return 1; - double tmp = 1 - (1 - cos(PI / (2.0 * 15.0))) / pow(cos(PI / 180.0 * abs(lat)), 2); + double tmp = 1 - (1 - cos(PI / (2.0 * 15.0))) / pow(cos(PI / 180.0 * lat), 2); return std::floor(2 * PI / acos(tmp)); } @@ -787,4 +787,4 @@ namespace Plane } } } -} \ No newline at end of file +}