diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index c9c8a8e..b46bd47 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1438,7 +1438,7 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) //zhongjin - std::string mAirportid = fgGetString("/instrumentation/comm/airport-id"); + std::string mAirportid = fgGetString("/sim/airport/nearest-tower-ident"); //塔台 strncpy(PosMsg->airport, mAirportid.c_str(), 4); //PosMsg->airport[4 - 1] = '\0'; @@ -1479,6 +1479,10 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) xxx = fgGetDouble("/instrumentation/transponder/id-code",true); PosMsg->jwhtext[11] = XDR_encode_float (xxx); + xxx = fgGetDouble("/position/altitude-agl-m",true); + PosMsg->jwhtext[11] = XDR_encode_float (xxx); + + //n = fgGetNode(""); }