更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-06 17:02:33 +08:00
parent 37ed7f6024
commit 1ed2656787

View File

@ -1437,9 +1437,9 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
//zhongjin //zhongjin
// for (unsigned i = 0 ; i < 3; ++i) // for (unsigned i = 0 ; i < 3; ++i)
// PosMsg->angularAccel[i] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); // PosMsg->angularAccel[i] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel);
PosMsg->angularAccel[0] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); PosMsg->angularAccel[0] = XDR_encode_float (motionInfo.angularAccel(0) * timeAccel * timeAccel);
PosMsg->angularAccel[1] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); PosMsg->angularAccel[1] = XDR_encode_float (motionInfo.angularAccel(1) * timeAccel * timeAccel);
PosMsg->angularAccel[2] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); PosMsg->angularAccel[2] = XDR_encode_float (motionInfo.angularAccel(2) * timeAccel * timeAccel);
} }