mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Fixes 2,4,6 refs #287
https://dev.vatsim-germany.org/issues/287#note-14
This commit is contained in:
@@ -256,8 +256,9 @@ namespace BlackMisc
|
||||
/*
|
||||
* Distance to planne
|
||||
*/
|
||||
const CLength &CAtcStation::calculcateDistanceToPlane(const CCoordinateGeodetic &position)
|
||||
CLength CAtcStation::calculcateDistanceToPlane(const CCoordinateGeodetic &position, bool update)
|
||||
{
|
||||
if (!update) return Geo::greatCircleDistance(this->m_position, position);
|
||||
this->m_distanceToPlane = Geo::greatCircleDistance(this->m_position, position);
|
||||
return this->m_distanceToPlane;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user