更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-07 14:14:59 +08:00
parent 6009cc455f
commit ef374863ea

View File

@ -1446,7 +1446,7 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
PosMsg->jwhtext[1] = XDR_encode_float (pitch); PosMsg->jwhtext[1] = XDR_encode_float (pitch);
PosMsg->jwhtext[2] = XDR_encode_float (roll); PosMsg->jwhtext[2] = XDR_encode_float (roll);
SGPropertyNode* n = fgGetNode("/sim/instrumentation/gps/indicated-ground-speed-kt",false); SGPropertyNode* n = fgGetNode("/sim/instrumentation/gps/indicated-ground-speed-kt",true);
float speed = n->getDoubleValue(); float speed = n->getDoubleValue();
PosMsg->jwhtext[3] = XDR_encode_float (speed); PosMsg->jwhtext[3] = XDR_encode_float (speed);