更新 'src/MultiPlayer/multiplaymgr.cxx'
This commit is contained in:
parent
83fc580f6c
commit
37ed7f6024
@ -729,7 +729,11 @@ namespace
|
|||||||
{
|
{
|
||||||
bool verifyProperties(const xdr_data_t* data, const xdr_data_t* end)
|
bool verifyProperties(const xdr_data_t* data, const xdr_data_t* end)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//zhongjin
|
||||||
using namespace simgear;
|
using namespace simgear;
|
||||||
|
FlightProperties ifce;
|
||||||
|
|
||||||
const xdr_data_t* xdr = data;
|
const xdr_data_t* xdr = data;
|
||||||
while (xdr < end) {
|
while (xdr < end) {
|
||||||
unsigned id = XDR_decode_uint32(*xdr);
|
unsigned id = XDR_decode_uint32(*xdr);
|
||||||
@ -1345,6 +1349,8 @@ FGMultiplayMgr::isSane(const FGExternalMotionData& motionInfo)
|
|||||||
void
|
void
|
||||||
FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
|
FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
|
||||||
{
|
{
|
||||||
|
using namespace simgear;
|
||||||
|
|
||||||
int protocolToUse = getProtocolToUse();
|
int protocolToUse = getProtocolToUse();
|
||||||
int transmitFilterPropertyBase = pMultiPlayTransmitPropertyBase->getIntValue();
|
int transmitFilterPropertyBase = pMultiPlayTransmitPropertyBase->getIntValue();
|
||||||
if ((! mInitialised) || (! mHaveServer))
|
if ((! mInitialised) || (! mHaveServer))
|
||||||
|
Loading…
Reference in New Issue
Block a user