更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-06 17:02:09 +08:00
parent 83fc580f6c
commit 37ed7f6024

View File

@ -729,7 +729,11 @@ namespace
{
bool verifyProperties(const xdr_data_t* data, const xdr_data_t* end)
{
//zhongjin
using namespace simgear;
FlightProperties ifce;
const xdr_data_t* xdr = data;
while (xdr < end) {
unsigned id = XDR_decode_uint32(*xdr);
@ -1345,6 +1349,8 @@ FGMultiplayMgr::isSane(const FGExternalMotionData& motionInfo)
void
FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
{
using namespace simgear;
int protocolToUse = getProtocolToUse();
int transmitFilterPropertyBase = pMultiPlayTransmitPropertyBase->getIntValue();
if ((! mInitialised) || (! mHaveServer))