mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #395, MS'review points
Also removed blackmisc variant samples, https://dev.vatsim-germany.org/issues/395#note-9
This commit is contained in:
committed by
Mathew Sutcliffe
parent
6119c22c78
commit
b494cb51b8
@@ -58,7 +58,7 @@ namespace BlackMisc
|
||||
double c = 2.0 * qAtan(qSqrt(a) / qSqrt(1.0 - a));
|
||||
double distance = earthRadiusM * c;
|
||||
|
||||
Q_ASSERT_X(distance >= 0, Q_FUNC_INFO, "distance < 0");
|
||||
Q_ASSERT_X(distance >= 0, Q_FUNC_INFO, "distance should never calculate to negative values");
|
||||
return CLength(distance, CLengthUnit::m());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user