From 6009cc455ff0a76e41765480e4a0424cabcfdb8f Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 7 Nov 2022 14:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/MultiPlayer/multiplay?= =?UTF-8?q?mgr.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MultiPlayer/multiplaymgr.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();