更新 'src/MultiPlayer/multiplaymgr.cxx'
This commit is contained in:
parent
08e7902e36
commit
83fc580f6c
@ -1427,8 +1427,15 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
|
|||||||
PosMsg->angularVel[i] = XDR_encode_float (motionInfo.angularVel(i) * timeAccel);
|
PosMsg->angularVel[i] = XDR_encode_float (motionInfo.angularVel(i) * timeAccel);
|
||||||
for (unsigned i = 0 ; i < 3; ++i)
|
for (unsigned i = 0 ; i < 3; ++i)
|
||||||
PosMsg->linearAccel[i] = XDR_encode_float (motionInfo.linearAccel(i) * timeAccel * timeAccel);
|
PosMsg->linearAccel[i] = XDR_encode_float (motionInfo.linearAccel(i) * timeAccel * timeAccel);
|
||||||
for (unsigned i = 0 ; i < 3; ++i)
|
|
||||||
PosMsg->angularAccel[i] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel);
|
//zhongjin
|
||||||
|
// for (unsigned i = 0 ; i < 3; ++i)
|
||||||
|
// PosMsg->angularAccel[i] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel);
|
||||||
|
PosMsg->angularAccel[0] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel);
|
||||||
|
PosMsg->angularAccel[1] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel);
|
||||||
|
PosMsg->angularAccel[2] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
xdr_data_t* ptr = msgBuf.properties();
|
xdr_data_t* ptr = msgBuf.properties();
|
||||||
xdr_data_t* data = ptr;
|
xdr_data_t* data = ptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user