diff --git a/LTAPI.h b/LTAPI.h index 48fd203..d55f39a 100644 --- a/LTAPI.h +++ b/LTAPI.h @@ -122,7 +122,7 @@ class LTAPIAircraft bool bcn : 1; ///< beacon light bool strb : 1; ///< strobe light bool nav : 1; ///< navigaton lights - bool hidden : 1; ///< aircraft _not_ visible? + unsigned hidden : 1; ///< aircraft _not_ visible? (remains an 'unsigned' for backward compatibility) bool camera : 1; ///< is LiveTraffic's camera on this aircraft? // Misc int multiIdx : 8; ///< multiplayer index if plane reported via sim/multiplayer/position dataRefs, 0 if not @@ -283,7 +283,7 @@ class LTAPIAircraft /// @param[out] y Local y coordinate /// @param[out] z Local z coordinate void getLocalCoord (double& x, double& y, double& z) const - { XPLMWorldToLocal(bulk.lat,bulk.lon,bulk.alt_ft, &x,&y,&z); } + { XPLMWorldToLocal(bulk.lat,bulk.lon,bulk.alt_ft*0.3048, &x,&y,&z); } public: /// @brief Standard object creation callback. diff --git a/docs/html/LTAPI_8h.html b/docs/html/LTAPI_8h.html index 0c263c2..d159040 100644 --- a/docs/html/LTAPI_8h.html +++ b/docs/html/LTAPI_8h.html @@ -175,11 +175,11 @@