diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index e654b03..760a56c 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1446,10 +1446,11 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) PosMsg->jwhtext[1] = XDR_encode_float (pitch); PosMsg->jwhtext[2] = XDR_encode_float (roll); - SGPropertyNode* n = fgGetNode("/sim/instrumentation/gps/indicated-ground-speed-kt"); - float speed = n->getDoubleValue(speed); + SGPropertyNode* n = fgGetNode("/sim/instrumentation/gps/indicated-ground-speed-kt",false); + float speed = n->getDoubleValue(); PosMsg->jwhtext[3] = XDR_encode_float (speed); + /* n = fgGetNode("/sim/instrumentation/gps/indicated-vertical-speed"); n = fgGetNode("/sim/instrumentation/airspeed-indicator/indicated-speed-kt"); //指示空速 @@ -1470,7 +1471,7 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) //n = fgGetNode(""); - + */ } xdr_data_t* ptr = msgBuf.properties();